cancel
Showing results for 
Search instead for 
Did you mean: 

REST Adapter :Custom Error Handling and still preserve API Responses

Former Member
0 Kudos

Dear Experts,

I have gone through the blog

https://blogs.sap.com/2015/04/10/pi-rest-adapter-custom-error-handling/

We have a requirement where we will get some response from Webservice API for some HTTP Status codes and for some we do not get any response format.

If we follow the above custom error handling blog and customize the response in error handling section of REST Adapter we are loosing the actual response from the API.

Is there any setting available in REST Adapter on how do we still preserve the Response Payload from API and also use Custom Error Handling.

Can combination of this can be acheived in SAP PO.we are using SAP PO 7.5 sp 6.

Could experts help here please !!

Many thanks

Thanks

Shaik

Former Member
0 Kudos

Hello experts ,

Any views please how can we approach this kind of scenario.

Thanks in advance

Regards

Shaik

Accepted Solutions (0)

Answers (3)

Answers (3)

vicky20691
Active Contributor

Hi,

Identify the status codes which is failure scenario for you and then follow the blog mentioned by Artem.

Once you use {http_result} the entire response will come as json back to SAP PO in error handling.

Regards,

Vikas

former_member192851
Active Participant
0 Kudos
former_member327037
Participant
0 Kudos

Hi Shaik,

Did u handle the above requirement.please suggest how it can be done in rest sender and receiver error handling cases.

Thanks.