on 07-15-2020 9:53 AM
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
Follow the blog underneath:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ravi,
Please check the below blog
regards,
Harish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.