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
  • 1.  How to handle soap-fault

    Posted Thu February 07, 2013 06:55 AM

    Hi,
    I am new to webMethods

    When webMethods consume a webservice,

    Is Soap-fault document generated automatically in the response document of the wsdl ?
    and How do we handle the scenario when the target server is down (i.e)retry-mechanism?

    Please help me on this guys.


    #webMethods
    #soa
    #API-Management


  • 2.  RE: How to handle soap-fault

    Posted Thu February 07, 2013 11:03 PM

    Soap fault will only be sent by the server that offered this service when something went wrong.
    If server is down, you should get http level errors, and you should handle that by using the normal
    try - catch approach.


    #soa
    #webMethods
    #API-Management


  • 3.  RE: How to handle soap-fault

    Posted Fri February 08, 2013 09:58 AM

    Hi tongwang,

    Thanks for the response.

    I think when the target server is down,only the fault document will be generated.so we need to handle it and manually throw an exception.

    Am i right?

    Thanks
    Bharath


    #webMethods
    #API-Management
    #soa


  • 4.  RE: How to handle soap-fault

    Posted Fri February 08, 2013 10:14 AM

    Your request is beyond SOAP, you can use try-catch to get the HTTP exception, you can generate fault response in the catch section.


    #soa
    #webMethods
    #API-Management