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

How can I capture soapxml in request attribute?

cp_patel
Contributor

I have soap XML format data which is a request from my application to the third party for payment purpose.I have the class and method information which forwards that request to other party. I am only interested to capture 1 parameter from the envelope (the one which is in bold).Please guide me what data type and Request attribute source I need to select to capture the interested field.

For example :

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body xmlns:ns1="http://iims.services/types/">
<ns1:collectpremium_IssuepolElement>
<ns1:userCode>SKIRCL</ns1:userCode>
<ns1:rolecode>SUPERUSER</ns1:rolecode>
<ns1:PRetCode>1</ns1:PRetCode>
<ns1:userId>SKIRCL</ns1:userId>
<ns1:stakeCode>BROKER</ns1:stakeCode>
<ns1:roleId/>
<ns1:userroleId/>
<ns1:branchcode/>
<ns1:PRetErr/>
<ns1:sourceOfCollection>A</ns1:sourceOfCollection>
<ns1:collectionNo/>
<ns1:receivedFrom/>
<ns1:instrumentAmt>5987</ns1:instrumentAmt>
<ns1:collections>
<ns1:accountCode>9100.130200</ns1:accountCode>
<ns1:draweeBankName/>
<ns1:subCode/>
<ns1:draweeBankCode/>
<ns1:collectionMode>ECS</ns1:collectionMode>
<ns1:debitCreditInd>D</ns1:debitCreditInd>
<ns1:scrollNo/>
<ns1:chequeType/>
<ns1:quoteNo>1302001610602692</ns1:quoteNo>
<ns1:collectionAmount>5987</ns1:collectionAmount>
<ns1:chequeDate/>
<ns1:chequeNo>GHMP4557047775</ns1:chequeNo>
<ns1:draweeBankBranch/>
</ns1:collections>
<ns1:quoteNo>1302001610602692</ns1:quoteNo>
<ns1:collectionType>A</ns1:collectionType>
<ns1:policyNo/>
<ns1:documentLink/>
</ns1:collectpremium_IssuepolElement>
</soapenv:Body>
</soapenv:Envelope>


1 REPLY 1

Julius_Loman
DynaMight Legend
DynaMight Legend

A short answer is - it cannot be done directly. Dynatrace does not have any options to capture HTTP POST Payload, parse it and extract data.

However, depending on your application, it is possible to capture the parameter by capturing it in the code where this gets processed. That can be done either by using capturing of Java/NET method parameters or return values. But you need to find the right class / method where this information is processed in your application code. The fastest way is to find this is to ask the developers of the application.

See here for details how to set up capturing of request attributes on method arguments:

https://www.dynatrace.com/support/help/how-to-use-dynatrace/transactions-and-services/configuration/...

Alternatively, if you can incorporate OneAgent SDK in the application, you can send the data from your code directly. But would require changes to your application code.

Certified Dynatrace Master | Alanata a.s., Slovakia, Dynatrace Master Partner

Featured Posts