Skip to Content
0

How to read field value from response payload in content modifier header

Sep 20, 2017 at 12:24 PM

66

avatar image

Dear All,

please find my flow,

from the HTTP response we need to get the value and the same need to send to header, then i'll use that header value to the datastore entity ID.

please find my response payload,

<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
    <soapenv:Body>
        <io:transferResponse xmlns:io="http://www.quantiguous.com/services">
            <io:version>2.0</io:version>
            <io:uniqueResponseNo>a2b56b709d2211e787100a0028ef0000</io:uniqueResponseNo>
            <io:attemptNo>1</io:attemptNo>
            <io:transferType>RTGS</io:transferType>
            <io:lowBalanceAlert>false</io:lowBalanceAlert>
            <io:transactionStatus>
                <io:statusCode>SENT_TO_BENEFICIARY</io:statusCode>
                <io:subStatusCode>0</io:subStatusCode>
                <io:bankReferenceNo>rtre</io:bankReferenceNo>
                <io:beneficiaryReferenceNo/>
            </io:transactionStatus>
            <io:requestReferenceNo>edfgdfg</io:requestReferenceNo>
        </io:transferResponse>
    </soapenv:Body>
</soapenv:Envelope>

and I've used below xpath expression to get the value

/Envelope/Body/transferResponse/uniqueResponseNo /transferResponse/uniqueResponseNo //transferResponse/uniqueResponseNo //uniqueResponseNo

But i'm not able to read the response fields value from xpath expression.

please do needful.

I believe, since response payload coming with SOAP envelop and we are not able read the xml field, and i can see two xmlns in the response payload as well.

please do needful to read the xml field from the response payloa

Regards

Ramesh

c1.png (63.5 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Sriprasad Shivaram Bhat
Sep 20, 2017 at 03:16 PM
0

Hello ramesh,

Below condition should work for you

//io:uniqueResponseNo

Also add an entry xmlns:io=http://www.quantiguous.com/services namespace mapping in runtime configuration.

Regards,

Sriprasad Shivaram Bhat


Show 1 Share
10 |10000 characters needed characters left characters exceeded

Thank you so much Sriprasad . it worked.

0