Skip to Content
0
Jul 15, 2020 at 08:53 AM

Copy value from Request message to Response message_JDBC to SOAP synchronous

50 Views

Hi,

The scenario is JDBC(Request & ResponseBeans) to SOAP synchronous scenario.

Need to copy and send the "RequestNumber" - "00001" from request message to response message inorder to store in database table for further database operations.

The "RequestNumber" is not mapped to target structure(SOAP request) , Only PONumber is mapped ..but we need to copy/capture in the response message.

we wont get the PONumber - 4714758 in the response message. So we need to get the RequestNumber from request message and to be sent to Database system.

Request Message:

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

<ns0:MT_POStatus_Request xmlns:ns0="http://Test">

<Records>

<RequestNumber>0001</RequestNumber>

<PONumber>4714758</PONumber>

</Records>

</ns0:MT_POStatus_Request>

Response Message to DB:

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

<ns0:MT_POStatus_Response xmlns:ns0="http://Test">

<DB_Table>

<action>Insert</action>

<Access>

<RequestNumber>0001</RequestNumber>

<POStatusNumber>Processed</POStatus>

</Access>

</ns0:MT_PONumber_S>

Thanks,

Ravi