Hi Manasa,
We actually just had the same discussion thread posted by someone else where they received help.
Here is the link to that discussion, hopefully, it helps.
------------------------------
Gabriel Marte Blanco
Austin TX
------------------------------
Original Message:
Sent: Fri April 28, 2023 07:15 AM
From: Manasa G
Subject: Handling JSON/XML Body inside SOAP Payload
Hi All,
Iam trying to access the data inside soap:Body in Soap Payload, it may have XML or JSON inside the soap:Body. how to make a generic xslt for handling both xml and json inside the soap:Body and i want to pass the json inside soap:body to backend and i will get a json response,how to pass the json response again in the soap:body.
Sample SOAP:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/">
<soapenv:Header/>
<soapenv:Body>
<inputDetails>
{
"CustomerName":"",
"Gender":"",
"DateOfBirth":"",
"Address":"",
"MobileNumber":"1234567678990"
}
</inputDetails>
</soapenv:Body>
</soapenv:Envelope>
------------------------------
Manasa G
------------------------------