Unable to Extract Soap Payload

Not applicable

Hi I am trying to extract SOAP payload using ExtractVariable policy. My payload is as below

<?xml version="1.0" encoding="UTF-8"?>

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.abcd.com%20abcd_xsd.xsd/"http://www.abcd.com ABCD_XSD.xsd">

<soapenv:Header/>

<soapenv:Body>

<ns1:request xmlns:ns1=" ABCD_XSD.xsd">

<ns1:ABC>ABC</ns1:ABC>

<ns1:PQR>PQR</ns1:PQR>

</ns1:request>

</soapenv:Body>

</soapenv:Envelope>

When I am using the following code in ExtractVariable policy I am not able to extract it.

<XMLPayload>

<Variable name="ABC" type="string"> <XPath>/Envelope/Body/request/ABC</XPath>

</Variable>

</ XMLPayload>

Kindly suggest.

Solved Solved
0 1 411
1 ACCEPTED SOLUTION

Hi @Somali Jain

You can extract the SOAP payload using ExtractVariable policy as below:

<XMLPayload>

<Variable name="ABC" type="string">

<XPath>/*[local-name()='Envelope']/*[local-name()=Body]/*[local-name()='request ']/*[local-name()='ABC']</XPath>

</Variable>

</ XMLPayload>

View solution in original post

1 REPLY 1

Hi @Somali Jain

You can extract the SOAP payload using ExtractVariable policy as below:

<XMLPayload>

<Variable name="ABC" type="string">

<XPath>/*[local-name()='Envelope']/*[local-name()=Body]/*[local-name()='request ']/*[local-name()='ABC']</XPath>

</Variable>

</ XMLPayload>