API Connect

 View Only
Expand all | Collapse all

Handling JSON/XML Body inside SOAP Payload

  • 1.  Handling JSON/XML Body inside SOAP Payload

    Posted Fri April 28, 2023 07:16 AM
    Edited by Manasa G Fri April 28, 2023 08:00 AM

    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
    ------------------------------



  • 2.  RE: Handling JSON/XML Body inside SOAP Payload

    User Group Leader
    Posted Wed May 10, 2023 02:00 PM
    Edited by Gabriel Marte Blanco Wed May 10, 2023 02:01 PM

    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
    ------------------------------