cancel
Showing results for 
Search instead for 
Did you mean: 

SAP PO REST Adapter: Channel selection based on HTTP Headers

prasanna_vittal
Participant

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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.