Skip to Content
0

REST Sender Adapter : displaying json custom message for time out from ECC

Jul 12, 2017 at 09:13 AM

53

avatar image

Hi Experts,

We have several REST to RFC synchronous scenarios in our project, we have a requirement where we have to display an error message like "message": {"time out error"} in case there is a time out from ECC.

Tried the following way:

but we are still getting the xml error message and not the custome json message.

Kindly help me achieve this.

Thanks & Regards,

Sayantika Datta

rest.png (9.2 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Sayantika Datta Jul 12, 2017 at 01:35 PM
0

The above didn't work because it seems the time out error comes in the header and not the payload, and the text content option searches only in the payload....so, I tried the following option too:

but this didn't work even because it seems we are getting the time out error message in the header at least, so “result message is empty” is also returning false.

Kindly help with any suggestion if possible.

Thanks & Regards,

Sayantika Datta

Share
10 |10000 characters needed characters left characters exceeded
Sanjeev Shekhar Singh Jul 13, 2017 at 06:41 AM
0

Hi Sayantika,

Have you tried the HTTP code instead of text content? I am guessing you would get 503 in case of timeout.

Regards,

Sanjeev.

Show 1 Share
10 |10000 characters needed characters left characters exceeded
Thanks, yes I have tried this option too, but we are getting status code 500 even for time out.

Regards,

Sayantika

0