Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 2740

REST Adapter (Receiver Scenario)

$
0
0

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:

 

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


Viewing all articles
Browse latest Browse all 2740

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>