Skip to Content
avatar image
Former Member

SAP PO REST Adapter: Channel selection based on HTTP Headers

Dear Community,

We have a requirement where a third party system wants to send various messages to our SAP PO's REST adapter (same endpoint). The message contains a header element and payload. Based on the value of that header (eg., id = 1 or 2 or 3), we need to select the correct REST channel. In the REST channel, currently we can only filter by JSON Element, XPath Element and HTTP operation. I don't see any option to filter by HTTP Header.

I followed the following blog and saw someone has posted a similar question on this topic:

https://blogs.sap.com/2014/12/18/pi-rest-adapter-same-endpoint-for-multiple-integration-flows/

If someone has had a similar requirement and found a workaround, please let me know.

Thansk in advance.

Regards,

Prasanna

rest.png (13.8 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Jan 08 at 04:00 AM

    hi,

    you can have a dummy scenario as first ICO before calling the original channels.

    In the first ICO ,you can read the header parameters (using dynamic configuration) into a temporary payload and route the message to the original end point from where you can use "XPath" option as tyou have already payload with Header Values.

    Add comment
    10|10000 characters needed characters exceeded