cancel
Showing results for 
Search instead for 
Did you mean: 

400 Response error in CPI to be sent to source ECC - Sync interface

karthiga_ak
Explorer
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

sumanth171
Active Participant
0 Kudos

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