Skip to Content
0

Receiver REST Adapter - Optional Parameters

Dec 12, 2017 at 12:29 AM

152

avatar image
Former Member

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Anoop Rai Feb 24 at 09:28 PM
0

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

Share
10 |10000 characters needed characters left characters exceeded
Christian Riekenberg Feb 23 at 08:44 AM
0

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

Regards

Chris

Share
10 |10000 characters needed characters left characters exceeded