Handling exceptions for the Web services gateway

Use this task to help you capture information on exception handling activities for the gateway.

Before you begin

Why and when to perform this task

During normal processing of a Web service invocation, the target service might generate a fault message and pass it to the channel for forwarding to the originator. As far as the gateway is concerned there is no difference between processing a normal output message and processing a fault message.

When an exception occurs during processing of a request, the channel needs some way to decide what to do with the exception. A service is needed that provides a pluggable handler that can look at the message, the exception and other information to decide whether to throw the exception back to the originator, or to construct a fault message.

This service is not provided with the Web services gateway, but the gateway does contain an interface to encapsulate such a service. The ExceptionHandler interface allows channels to call an exception handling service, and report the exceptions to a third party for analysis.

The Home object for this service must implement the com.ibm.wsgw.beans.ExceptionHandlerHome interface and be located through the Java Naming and Directory Interface (JNDI) in the websphere/WSGW/ExceptionHandler directory.


Related tasks
Developing Web services gateway extensions
Capturing Web service invocation information from the Web services gateway
Writing a filter for the Web services gateway
Related reference
Web services gateway - The ExceptionHandler interface



Searchable topic ID:   twsg_pme_eh
Last updated: Jun 21, 2007 8:07:48 PM CDT    WebSphere Business Integration Server Foundation, Version 5.0.2
http://publib.boulder.ibm.com/infocenter/wasinfo/index.jsp?topic=/com.ibm.wasee.doc/info/ee/wsg/tasks/twsg_pme_eh.html

Library | Support | Terms of Use | Feedback