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
  • 1.  Custom fault in consumer gets lost.

    Posted Mon March 17, 2014 09:02 PM

    Hi,

    I’m consuming a web service from an external application which is throwing a custom exception.
    When I create the WSD consumer I see that the custom error is located inside the fault/detail. However, when I consume it from a provider service, and the consumer throws an exception, the fault/detail gets replaced with lastError and the custom exception gets lost.

    Is this a known issue?

    Thank you!

    AMC.


    #webMethods
    #API-Management
    #soa


  • 2.  RE: Custom fault in consumer gets lost.

    Posted Wed April 09, 2014 01:27 PM

    Upon getting the fault document throw the same to catch block so that getLastError catches same message!!! ?


    #soa
    #API-Management
    #webMethods


  • 3.  RE: Custom fault in consumer gets lost.

    Posted Wed April 09, 2014 02:19 PM

    Hi,
    I guess this is not the case! pub.flow:getLastError should still give the last custom exception. Is your code implemented in Main-Try-Catch?

    Can you share the screen shot of your code.


    #soa
    #API-Management
    #webMethods