Hi Experts on SCN:
In my integration scenario I need to use REST receiver adapter to inquiry an external system to get some values.
The problem is, two different urls for two types of search:
- Type 1: https://external-system/api/{object}/{subobject}/search?{search_part1}={search_part2}
- Type 2: https://external-system/api/{object}/search?{search_part1}={search_part2}
As you can see the only difference is {subobject} in the uri,
I want to use only one REST receiver adapter, very likely is adapter for Type 1, to rule both cases but I can't.
Because, if I don't give value to {subobject} when inquiry is type 2, system gave me below error
...Transmitting the message using connection REST_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.aii.adapter.rest.ejb.receiver.PlaceholderMissingException: URL placeholder fromunit is not configured, or has an empty value...
I tried to use adapter for type 2 and give value like "products/product" to {object}, but "/" will be encoded to %2F, then the whole url became an invalid one. What SAP online help said about "URL Pattern" is:
Is there any way I can achieve what I want? Thanks.
Kind Regards,
Nick