Creating Your Own Handlers
This section includes a simple example for creating your own handlers. It uses an example in the <installdir>\examples\webservices\Handlers directory. This directory contains provided client and server implementations, two handler classes, and configuration files required to configure the handlers.
On the client, we will add two handlers to the proxy: a request handler and a transport handler.
On the server, the same handler will take the SOAP header and perform special processing before adding a response header back in for the response message.
Creating a customized handler is a simple task, requiring the following basic steps:
*Generate code from a WSDL, as usual. In this example, we’ll use handlers.wsdl.
*Write the handler implementation, extending rwsf::MessageHandlerImp.
*Add the handler to the proxy.
*Register the handler by defining it in the service implementation and adding it to the servicecontextname_objects.xml file.
*Chain and configure the handler in servicecontextname_handlers.xml.