on 03-15-2021 2:24 PM
Hi Experts,
Target system API is throwing 400 response.I am able to capture the response body through groovy script and send it via email.
But the message is failing in ECC with HTTP 400 error. ECC wants the response to be sent for both success and failed status.
Is it possible to send the 400 response back to ECC?
Regards,
Karthiga
Hi Karthiga,
Since you have mentioned that you can capture the response using groovy. You can simply create an XML in the groovy which accepts by the ECC system and end the flow. The response flows back.
def XML: "<Message><Status>E</Status><ErrorBody>"+${in.body}+"</ErrorBody></Message>"
message.setBody(XML)
Regards,
Anil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.