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.


#TechXchangePresenter
 View Only
  • 1.  Get SOAPException

    Posted Wed July 11, 2012 11:38 AM

    Hi,
    I’m calling a webservice from MWS CAF, that was imported using glue.
    When I call the WebService and for some reason the webservice returns a SOAP Exception, the webservice refresh methods throws a ContentProviderException. Now, my question is:
    How can I get the Soap Exception that was throwed by the WebService that I call?

    Regards,


    #webMethods
    #webMethods-BPMS
    #MWS-CAF-Task-Engine


  • 2.  RE: Get SOAPException

    Posted Wed July 11, 2012 03:39 PM

    You can use the soap monitor to inspect the raw webservice envelope.
    See demo @
    http://communities.softwareag.com/ecosystem/communities/protected/developer/webmethods/caf/demos/soap-traffic-analysis-in-mws

    Or, you can add a WebserviceClientErrorHandler field to your page bean and set the binding of the errorHandler property of your webservice provider to point to this error handler bean. Then any error occurred inside provider methods will be delegated to the handler (you can also provide implementation of you own handler via interface).

    You can take a look at the /samples/caf/wm_coreproviderstest. Look for view/ErrorHandling folder.

    Samples source code is available for download from Sample Packages for CAF 8.2.1


    #webMethods
    #webMethods-BPMS
    #MWS-CAF-Task-Engine


  • 3.  RE: Get SOAPException

    Posted Thu July 12, 2012 10:29 AM

    Hi Jose,

    The first thing I do when I receive a SOAP exception in CAF is to check if all the required parameters are provided.

    That is, input parameters set in the web-app and the output parameters returned by the service.

    br,
    Vlad


    #MWS-CAF-Task-Engine
    #webMethods
    #webMethods-BPMS