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

How to create a Custom SOAP-Fault

  • 1.  How to create a Custom SOAP-Fault

    Posted Thu May 06, 2010 01:19 PM

    Can someone give any direction on how to create/return custom SOAP-Fault from the web service exposed on wm 6.5 sp3. I was also looking at details around webService Developers guide and SOAP Developers Guide but wasn’t able to locate this info?

    Any help is much appreciated.


    #webMethods
    #API-Management
    #soa


  • 2.  RE: How to create a Custom SOAP-Fault

    Posted Fri May 07, 2010 06:59 AM

    I was able to do it with below step.

    • Generate a Custom SOAP-FAULT document, convert it to string and then node
    • Change the HTTP response code by using pub.flow:setResponseCode (eg: set to 500)
    • Add the SOAP-FAULT to soapResponseData by using pub.soap.utils:addBodyEntry

    Thanks
    AmaR


    #API-Management
    #soa
    #webMethods