Skip to Content

REST sender adapter synchronous with multiple operation mapping using GET method

Hello Experts,

I have a scenario Rest to Proxy sync , the REST service will be called using GET operation using below links

http://abc.def/scenario1/inp1/inp2

http://abc.def/scenario2/inp1/inp2

I have followed this https://blogs.sap.com/2015/10/26/exposing-rest-service-with-multiple-operations-in-sap-po-with-rest-adapter/ and is it successful using PUSH , but fails with GET

Unable to parse XML message payload to extract operation for receiver determinationorg.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Premature end of file.

I have followed this scenario for GET which is with single operation alone

https://blogs.sap.com/2018/07/17/rest-sender-adapter-get-and-post-examples/

Can you please share your thoughts on this

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Oct 29, 2019 at 11:25 AM

    Hi!

    I guess, you should use URL pattern, something like /{scenario_id}/inp1/inp2, save scenario_id to "resource" variable to bind message type on "Operation Determination" tab.

    For example, value of variable "resource" is used:

    egards, Evgeniy.


    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.