Skip to Content

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

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)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Jul 12, 2017 at 01:35 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Jul 13, 2017 at 06:41 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded