cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic URL for REST Receiver

praveen_vanga3
Participant
0 Kudos

Hi All,

Looking for help to build dynamic URL for REST Receiver.

Checked for REST Metadata there are no Dynamic attributes for REST , In the scenario ,we are trying to create entire URL in Udf and Pass to REST URL same like SOAP.

Thank

Praveen

Accepted Solutions (1)

Accepted Solutions (1)

iaki_vila
Active Contributor

Hi Praveen,

If you check this recent thread you can notice that you can do it with XPATH expression.

Regards.

praveen_vanga3
Participant
0 Kudos

Hi Iñaki Vila,

Thanks for the clue. with that we can send part of the variable in in the URL, as per my requirement I need to set different URL's based on conditions. anyhow with your thread I got an Idea, Thank you very much.

Thanks

Praveen

Answers (1)

Answers (1)

Muniyappan
Active Contributor
0 Kudos

construct the url in the udf. in the communication channel select as adapter specific attributes.

in my interface i was passing po number in the url dynamically, you can try something like this.

UDF:

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

DynamicConfigurationKey FileName1 = DynamicConfigurationKey.create("http:/"+"/sap.com/xi/XI/System/REST","po");

conf.put(FileName1, po);

channel configuration.