cancel
Showing results for 
Search instead for 
Did you mean: 

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

former_member213558
Active Participant
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Sriprasadsbhat
Active Contributor
0 Kudos

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

former_member213558
Active Participant
0 Kudos

Thank you so much Sriprasad . it worked.

Answers (0)