IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

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
Expand all | Collapse all

Thrown soapenv:Fault

  • 1.  Thrown soapenv:Fault

    Posted Tue April 21, 2020 03:21 AM

    Hello,

    how Can I throw SOAP-Fault Exception in try/catch block to be look like that:

    <s:Envelope xmlns:s=“http://schemas.xmlsoap.org/soap/envelope/”>
    <s:Body>
    <s:Fault>
    s:1000
    B??d autoryzacji u?ytkownika


    1000
    1000


    </s:Fault>
    </s:Body>
    </s:Envelope>

    I tried use:

    pub.soap.utils:convertToVersionSpecificSOAP
    pub.flow:setResponseCode
    pub.xmldata:xmlDataToString
    pub.soap.utils:stringToSoapData
    pub.soap.utils.addBodyEntry


    #webMethods
    #Integration-Server-and-ESB


  • 2.  RE: Thrown soapenv:Fault

    Posted Wed April 22, 2020 06:30 AM

    Hi Lukasz,

    did you check the WS Developers Guide if there are any hints on how to create the SOAP Fault?

    The structure might be dependent on SOAP version, IS version etc. being used.

    Do you have WSDL and/or XSD available for this interface?
    This might ease the creation of appropriate document types and web service descriptor nodes in Designer.

    Regards,
    Holger


    #Integration-Server-and-ESB
    #webMethods