Skip to Content

Dynamic URL for REST Receiver

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    May 18, 2016 at 01:54 PM

    Hi Praveen,

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

    Regards.

    Add comment
    10|10000 characters needed characters exceeded

    • 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

  • May 18, 2016 at 02:00 PM

    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.


    Add comment
    10|10000 characters needed characters exceeded