V Axis handler
Build a full web service with Axis
Handler definition
Handlers allow you to do some operation before and after the web service implementation code is invoked. It's used to pre process SOAP request and to post process SOAP response.
Coding the handler
Axis comes with the package org.apache.axis.handlers wich contains Interfaces and Abstract classes that allow you to build handler for your Axis web service. Let's build a simple handler that will print the content of incoming XML/SOAP messages to the Console :
Deploying the handler
To deploy a handler, you just have to place a handler declaration tag into the requestFlow of your service definition in the server-config.wsdd file. If you define more than one handler, the first one you place in the wsdd file will be the first one called in the request flow.
Restart the server and run the AxisTutorialClient web application. Request the CD of id 1 ... the XML/SOAP request is printed in your Eclipse console :