cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic URL for Recv HTTP (Adapter spec attribute enabled)

prabhu_s2
Active Contributor
0 Kudos

Hi,

I need to have a dynamic URL for one of my cases been worked. the URL is

httlp://:<host>/perform/XTA?serv=*&action=start

the event "action" can accept either start/stop or restart. i wanna to control this dynamically and went for recv http enabled with adapter specific message attributes. here i had enabled the check box "URL" and in parameter 1 i had given the name as "action".

in my message payload the "action" will be start/stop or restart which is handled by UDF for which the code is below:l

DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);

DynamicConfigurationKey trig = DynamicConfigurationKey.create( "http://sap.com/xi/XI/System/HTTP", "UrlParamOne");

conf.put(trig,action);

return "";

this udf is mapped to the root node of the target...but when execute the case i get the following error

"Dynamic Header - Missing Message Attributes: URL/HTTP Destination"

when i execute the url

httlp://:<host>/perform/XTA?serv=*&action=start

in browser it works fine and also with fully qualified name in http recv works fine but not with dynamic settings.

any help on it pls?

Accepted Solutions (1)

Accepted Solutions (1)

prabhu_s2
Active Contributor
0 Kudos

any hints/solution on it?

former_member181985
Active Contributor
0 Kudos

Hi Prabhu,

Enable Adapter-Specific Message Attributes(ASMA) in receiver HTTP channel.

Dont enable checkboxes for "URL or HTTP Destination".

Enable checkbox "Apply URL Parameters"

for parameter1 textbox give value action

Regards,

Praveen Gujjeti

Answers (0)