REST POST & PUT return success but called application seems to ignore the payload

0
Hi, My REST calls (POST, PUT, GET) are all successful, But the POST method seems to ignore the payload REST method   with Request configured as and export mapping configured as and mapping attributes by name and with Response configured as and import mapping configured as with mapping attributes by name and my POST microflow Log message showing success REST Response: Content=null Code=201 Reason=Create    Yet, the called application (ServiceNow) seems to ignore the content of the payload. What am I missing? Any hints are appreciated. Guislain PS: I have a similar issue with the POST method.
asked
4 answers
1

I have found that manually adding a header "content-type" with value "application/json" to the HttpRequest enabled a third party application (in my case WSO2) to stop ignoring POST and PUT bodies.

answered
0

Hi Rom,

Thanks for the prompt response.

Yes, I should have mentioned that I did include that.

Do you have another hint?

Guislain

answered
0

Hi Rom,

Thanks for the tip, and yes it appears to do so.

Thanks,

Guislain

answered
0

Hi Rom,

Bingo!

Upon closer look, I was using my SN_IncidentResponse JSON structure, instead of my SN_IncidentRequest.

Now the Trace looks right

and it works.

Thanks Rom,

Guislain

 

answered