Skip to Content
author's profile photo Former Member
Former Member

How to configure sender REST adapter with GET Operation

Hi Experts,

I have a sync scenario between Legacy & SAP ECC system.

Legacy <--REST--> SAP PI <--PROXY-->.

When i invoke REST end point through SOAP UI using POST operation I am getting expected result but, when i change the operation from POST to GET & send the value in URL then I could only see response with no values and this is because PI is sending message structure with out any field values in it as shown in below figures.

Screen shot 1: Message is containing only root element with out any field name & value for it.Field 'po_number' is missing from the content when using GET operation.

Structure designed ESR with field po_number. (Fig 2)

REST sender adapter configuration with GET Operation.

Below response is because the value for field 'po_number' what i am passing is not being sent to SAP ECC (refer fig 1), so i am getting response as No PO

I tried many option available under REST Resource, REST Operation & Operation Determination tabs provided in REST adapter but could not get/read value for po_number from URL into the message, so could some one really help me in configuring what i am missing so that i can get the value from URL in to my message content.

Thanks,

Farooq

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on May 14, 2017 at 12:27 PM

    Hi Mohammed,

    You need to use your REST channel as a receiver (with POST operation) in your message mapping lookup. You are getting this error because your REST server is only configured to give a response on a POST operation with PO number and not GET. Let me know if you face any issues post implementing the lookup.

    Regards,

    Karthik

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 21, 2019 at 09:54 PM

    Hi guys,

    Any solution for this problem?.

    I have exactly the same problem.

    Regards.

    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.