Most likely because you may have a response attribute somewhere created that has content-type set to xml .
Select the tick box that send response immediately to see if you get a JSON response.
Do you have any http route option where you have set value the default
------------------------------
Pre-Sales Consultant
CA Southern Africa
------------------------------
Original Message:
Sent: 02-25-2020 01:29 AM
From: Pavansai C
Subject: Return Template response to requestor - XML
The Policy Block
Original Message:
Sent: 02-24-2020 10:46 AM
From: Joe Dascole
Subject: Return Template response to requestor - XML
Hi Pavansai,
Can you share a sample of your policy? Are you simply using a return template response assertion to return the message body back to the requestor?
The default content type for the return template response is XML. It would need to changed to JSON if this is how it is set up.
Regards,
Joe
Original Message:
Sent: 02-24-2020 10:02 AM
From: Pavansai C
Subject: Return Template response to requestor - XML
Hey There,
While sending the json response to the requester.. I found the XML is returned. Can someone help me in fixing this..?
<data contentType="application/soap+xml;charset=utf-8" contentLength="1044"><![CDATA[
{
JSON
}
</data>