Skip to Content
avatar image
Former Member

Receiver REST Adapter - Optional Parameters

Hi,

I have to set the parameters as optional in Receiver adapter (option only existing in Sender REST Adapter). when ever a parameter (not value but parameter itself) is not passed from the sender http header or passing a value "&" as mentioned in the below thread, I am getting the error message that - "URL placeholder xxx is not configured, or has an empty value "

During runtime the message is always looking for all the parameters configured and not accepting any values. Could you please help me on how to make a Rest Receiver URL Parameters really dynamic and optional.

want to have an URL which works in any of the 3 scenarios below,.

http://server:port/service?para1=value1

OR

http://server:port/service?para2=value2

OR

both the parameters separated by amp

referred :

https://archive.sap.com/discussions/thread/3892571

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Feb 24 at 09:28 PM

    Hi,

    If its only about three URLs then its easily handle using three different Receiver Business Components and configure different receiver channels in each.

    Or best way add an extra field in structure as URL and just cunstruct full URL in mapping only. Then use URL Pattern as : http://server:port/service?{URL} with pattern variable replacement.

    In mapping pass URL as : para1=value1 or para2=value2 or para1=value1¶2=value2

    Regards,

    Anoop Rai

    Add comment
    10|10000 characters needed characters exceeded

  • Feb 23 at 08:44 AM

    Hi,
    I am facing the same issue. Did you found a solution?

    Regards

    Chris

    Add comment
    10|10000 characters needed characters exceeded