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

Capturing and displaying web request parameters from XML input.

moses_ogutu1
Inactive

Can anyone please advise how I can capture and display
specific entries from and XML input, which is submitted as a SOAP request to a
web service.

Using the excerpt below as an example I would like to
display the parameters supplied as part of the request (Shape = Circle, Area =
234.67 and Circumference = 234), whenever I am viewing “Request
Parameters
” details on a purepath.

I am currently running Dynatrace APM ver 6.5

_____________


InputXML: <soap:Envelopexmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xmlns:xsd="http://www.w3.org/2001/XMLSchema">


<soap:Header>


<actionxmlns="urn:testurl.co.uk/api98">urn:testurl.co.uk/api98/actions/0098</action>


<propertiesxmlns="urn:callcredit.plc.uk/api5">


<Shape>Circle</Shape>


<Area>234.67</Area>


<Circufrecence>234</Circufrecence>


</properties>


</soap:Header>


<soap:Body>

_____________

I have added the parameters above within the webserver
sensor as per the attached screenshot but have not been able to view the values
within purepath details

3 REPLIES 3

Babar_Qayyum
Leader

Hello Moses,

You can use the 'Servlets' and 'ASP .NET' sensor packs to capture the desired parameters and attributes. Below is the documented description for better understanding.

Parameters and Attributes ((warning) 😞 Capture values of certain parameters and attributes (i.e. request headers, session attributes, request attributes, request parameters) as strings.To specify a captured attribute explicitly, provide its name in the Attribute column. To capture an attribute that contains a certain name, provide a partial name in the Attribute column. To capture all available attributes, leave the Attribute column empty or type '*'.

Regards,

Babar

c_schwarzbauer
Dynatrace Champion
Dynatrace Champion

hi Moses,

Dynatrace AppMon only allows you to capture headers & parameters that are defined by HTTP.

what you're doing - or at least I expect that you're doing - is to send SOAP/XML messages in the payload of HTTP requests. this cannot be captured by AppMon, as it's not looking and parsing any payload of messages. especially from a performance perspective, this would be no good idea at all, anyway.

so you could try to find methods in the code which do the actual parsing and try to capture the arguments/return values from those methods.

but apart from that I don't see any other possibility.

HTH, Christian

Another way to achieve is to grab one of the candidate method from the app layer which performs the request processing, and get the values in argument and return value from there in splitting. Be creative you can use Regex also.