cancel
Showing results for 
Search instead for 
Did you mean: 

how to pass sender HTTP dyanmic configuration url parameters to pass to target message.

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

iaki_vila
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

Thanks inviki,

Please can you explain clearly its  i don't have sender structure .

values are in saop header dynamic configuration only .how can mapp with target structure

my message mapping is like below.

please give your valuble suggestion.

Regards

Ravi

markangelo_dihiansan
Active Contributor
0 Kudos

Hi,

Aside from the namespace issue pointed out by , instead of using == as your comparator, can you use .equals("1")?

Hope this helps,

Mark

iaki_vila
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

Thanks inaki

source dyanmic soap header successfully coming to target message but  these messages are failing at call adapter level in sxmb_moni.

one more query

can we send text in post method .

like with out xml message only i need to pass as text string to target .

iaki_vila
Active Contributor
0 Kudos

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.

Answers (0)