cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic URL for HTTP Receiver PI 7.1 (Sync Scenario)

manikandan_shanmugam3
Active Participant
0 Kudos

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

Accepted Solutions (0)

Answers (3)

Answers (3)

markangelo_dihiansan
Active Contributor
0 Kudos

Hello,

HTTP GET is only supported by PI7.3 and above. PI 7.11 and below can only use POST as the default method. You have other ways to do this though:

1. Via UDF

2. Via function module

3. Via Java proxy

Not sure about SOAP Axis though.

Hope this helps,

Mark

Former Member
0 Kudos

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

gagandeep_batra
Active Contributor
0 Kudos

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:

http://scn.sap.com/community/pi-and-soa-middleware/blog/2006/04/18/dynamic-configuration-of-some-com...

Regards

Gagan