on 12-04-2013 7:30 AM
Hi All,
Scenario : Proxy to HTTP Sync scenario
We need to do URL submission to HTTP using GET Protocol and the URL would be Dynamic according to Input Paylod.
Is it possible to Use UDF to achieve the above or any other ways?
Kindly share the UDF if possible.
Regards,
Mani
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mani
Use the exact code below to pass the dynamic url
Code:
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey keyurl =DynamicConfigurationKey.create( "http://sap.com/xi/XI/System/HTTP", "TargetURL");
String url = "http://XXXXXXXXXXX.com"+":80XX"+"/XXX/ws";
conf.put(keyurl, url);
return "";
Please select the URL option in the receiver communication channel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Manikandan,
You can use the following udf:
DynamicConfigurationKey keyURL = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/HTTP", <b>XXXXX</b>);
// access dynamic configuration
DynamicConfiguration conf = (DynamicConfiguration) param.get (StreamTransformationConstants.DYNAMIC_CONFIGURATION);
// set value
conf.put(keyURL, url);
For more information check following blog:
Regards
Gagan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
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.