API Connect

API Connect

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 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

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