Showing results for 
Show  only  | Search instead for 
Did you mean: 

Capture xml soap envelope in request attribute


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:

<soapenv:Envelope xmlns:soapenv="">
<soapenv:Body xmlns:ns1="">

DynaMight Legend
DynaMight Legend

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.
Certified Dynatrace Master | Alanata a.s., Slovakia, Dynatrace Master Partner

Hi @Július L.,

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?

Antonio Sousa

Featured Posts