cancel
Showing results for 
Search instead for 
Did you mean: 

sap cpi iflow :Capturing http Response Message

0 Kudos

Hi

I have a API, When I call it using HTTP (using Oath2), it gives response (JSON)

I need to capture the response message and post it as an idoc to ECC.

In case of PI/PO we build sync service interface and it is straight forward.

In case of CPI, I am not seeing any block/step to handle this.

can you advise if this requirement can be handled out of box or should I write any script ?

I went through below log and this looks to be a different requirement.

https://answers.sap.com/questions/13025237/sap-cpi-how-to-capture-response-message-from-http.html

Advanced thanks for your help.

Thanks

Ravindra

Accepted Solutions (0)

Answers (1)

Answers (1)

Sriprasadsbhat
Active Contributor
0 Kudos

Hello Ravindra,

If you are getting response message in body ( after request reply of http adapter ) then you dont have write any script you can just add JSON to XML converter and transform the response as required by your sender system. In case if your looking for error response or any headers from your receiver HTTP adapter then you should Allow the header in Runtime Configuration of iflow + add a script to get hold of error response ( inside exception subprocess for error ).

Regards,

Sriprasad Shivaram Bhat