webMethods

webMethods

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

Namespaces in SOAP envelope tag getting omitted in response (SOAP Webservice scenario)

  • 1.  Namespaces in SOAP envelope tag getting omitted in response (SOAP Webservice scenario)

    Posted Wed March 25, 2020 12:43 PM

    I have created a provider and consumer using a wsdl.
    When i hit the respective backend directly, it is giving me response in the following format:

    <soapenv:Envelope xmlns:soapenv=“http://schemas.xmlsoap.org/soap/envelope/” xmlns=“http://soap.sforce.com/schemas/class/WebCRMArchiveCall” xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance” xmlns:xsd=“XML Schema”>
    soapenv:Body
    123
    </soapenv:Body>
    </soapenv:Envelope>

    I have correctly mapped this response to the output of the provider. But while i’m hitting from the SoapUI, i’m getting the below response:

    <soapenv:Envelope xmlns:soapenv=“http://schemas.xmlsoap.org/soap/envelope/”>
    soapenv:Body
    tns:test123</tns:test>
    </soapenv:Body>
    </soapenv:Envelope>

    If you could see the only namespace present in the soap envelope tag is soapenv and other namespaces such as xsi and xsd are not getting passed. Looks like SAG is suppressing the rest of the namespaces.

    Is there any way we could pass all the namespaces bounded to soap envelope tag shared by the backend to be binded in the final provider response

    Please let me know if you need any other information.


    #webMethods
    #Integration-Server-and-ESB