cancel
Showing results for 
Search instead for 
Did you mean: 

Copy value from Request message to Response message_JDBC to SOAP synchronous

ravi_teja14
Participant
0 Kudos

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

Accepted Solutions (0)

Answers (3)

Answers (3)

m_radziewicz_ey
Explorer
0 Kudos
ravi_teja14
Participant
0 Kudos

Hi Mikolaj - I have followed the similar blog. The behavior of the UDF is same but am not getting the Input request message value in response message.

Thanks,

Ravi

ravi_teja14
Participant
0 Kudos

Hi,

I tried with below Dynamic Configuration UDF in Request mapping & Response mapping but not getting the value in the response message.

UDF in request mapping:

DynamicConfiguration conf = (DynamicConfiguration)container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey keySource = DynamicConfigurationKey .create(" http://sap.com/xi/XI/System/SOAP","; SessionKey");
if (conf != null) {
conf.put(keySource,var1);
}return var1;

UDF in response mapping:

DynamicConfiguration conf = (DynamicConfiguration)container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey keySource = DynamicConfigurationKey .create("http://sap.com/xi/XI/System/SOAP","SessionKey");
return conf.get(keySource);

Am i missing any steps or code to get the value in the response message.

Harish
Active Contributor
0 Kudos