Skip to Content
avatar image
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 comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • 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 comment
    10|10000 characters needed characters exceeded