on 05-05-2014 12:08 PM
HI Exeperts.
I am working on requirement http-post to pdoxy scenario .presently i am passing the data in url from the http post .
i writed the udf for target side mapping, but he url parameters will have only in soap header dyamnamic configuratio thes values are not coming to target message .
below is the code for udf handle the dynamic configuration .
***********************************************************************
DynamicConfiguration conf = (DynamicConfiguration) container
.getTransformationParameters()
.get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
if (urlParam[0] == 1) {
DynamicConfigurationKey merchantId = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/","URLParamOne");
String fname = conf.get(merchantId);
value.addValue(fname);
}
else if (urlParam[0] == 2) {
DynamicConfigurationKey string = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/","URLParamTwo");
value.addValue( conf.get(string));
}
**************************************************
url values will be in the soap header dyamic configuraton filed level.
how can i map these field to target message?
Please help us its very urgent issue?
Regards
Ravinder
Hi Ravinder,
Try with:
parmValue = DynamicConfigurationKey.create( "http://sap.com/xi/XI/System/HTTP", "UrlParamTwo");
Your namespace seems to be wrong.
Also you can check this thread with a very interesting final solution:
Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ravinder,
I only said that you can try to change "http://sap.com/xi/XI/System/" by "http://sap.com/xi/XI/System/HTTP" in your code. Also you should to change URLParamOne by UrlParamOne (the r and l in lowercase) an so on.
Regards.
Hi Ravinder,
source dyanmic soap header successfully coming to target message but these messages are failing at call adapter level in sxmb_moni.
Please, share the exception in order to the SCN members can help you.
can we send text in post method .
like with out xml message only i need to pass as text string to target .
You can send the text that you want in the payload of the HTTP Post method. Check this William Li's example
Regards.
User | Count |
---|---|
79 | |
9 | |
9 | |
7 | |
7 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.