# Capture xml soap envelope in request attribute

**URL:** <https://community.dynatrace.com/t/capture-xml-soap-envelope-in-request-attribute/18640>\
**Category:** Open Q&A\
**Tags:** request-attributes\
**Created:** [March 2, 2020, 7:39am UTC](https://community.dynatrace.com/t/capture-xml-soap-envelope-in-request-attribute/18640 "2020-03-02T07:39:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cp\_patel](https://avatars.discourse-cdn.com/v4/letter/c/c2a13f/32.png) [@cp\_patel](https://community.dynatrace.com/u/cp_patel)\
**Post date:** [March 2, 2020, 7:39am UTC](https://community.dynatrace.com/t/capture-xml-soap-envelope-in-request-attribute/18640/1 "2020-03-02T07:39:10Z")

</div>

I have a method which is sending some xml soap request to third party for getting payment done. How can I capture the request made by the method in request attribute? Request here is an envelope. I am interested to capture the collection amount from the request which is presented in bold in the below example. Please guide me if it is possible to do or not.

For ex:

| http://schemas.xmlsoap.org/soap/envelope/"\>  
http://iims.services/types/"\>  
  
SKIRCL  
SUPERUSER  
1  
SKIRCL  
BROKER  
  
  
  
  
A  
  
  
5987  
  
9100.130200  
  
  
  
ECS  
D  
  
  
1302001610602692  
**5987**  
  
GHMP4557047775  
  
  
1302001610602692  
A  
  
  
  
  
 |

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [March 2, 2020, 7:44am UTC](https://community.dynatrace.com/t/capture-xml-soap-envelope-in-request-attribute/18640/2 "2020-03-02T07:44:10Z")

</div>

Not directly. Request attributes are limited to ~250 characters. You have only two options I believe:

- Find the code level method which is passing the collectionAmount somewhere in your code and setup request attribute on that method capturing the value
- Use OneAgent SDK and modify your application code to push the value via OneAgent SDK API as a request attribute. For this approach, you need to modify the application code.

---

<div class="post-metadata">

**Author:** ![AntonioSousa](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antoniosousa/32/50_2.png) [@AntonioSousa](https://community.dynatrace.com/u/AntonioSousa)\
**Post date:** [January 18, 2021, 6:22pm UTC](https://community.dynatrace.com/t/capture-xml-soap-envelope-in-request-attribute/18640/3 "2021-01-18T18:22:18Z")

</div>

Hi [@Július L.,](https://answers.dynatrace.com/users/16467/view.html)

I have a use case like this one, and have a doubt: when you refer to ~250 characters, is that what is captured, or what eventually is than saved, say after regex parsing.

Given that the option here would be to grab a POST parameter, and since a SOAP body does not constitute a parameter in HTTP style, do you believe there would be a way around it, even if the ~250 byte limit applies?
