Hi Hani,
Handler declaration goes in webservices.xml. Also, you can have a chain of handlers declared in your Web service DD file. If you like to have a Handler class [it should extend jax-rpc handler class] defined in your webservice which you may be using for processing SOAP message header information.
The mention of that handler class goes in webservices.xml. For Axis style webservice the same is placed in server-deploy.wsdd file. Now, how this is specified is something which is specific to target App Server.
Here I will provide a few samples:
1. Websphere:
<handler id="Handler_1066493401322">
<handler-name>serverHandler</handler-name>
<handler-class>websphere.handler.ServerHandler</handler-class>
<soap-header>
<namespaceURI>
http://x.y.z</namespaceURI>
<localpart>xfh</localpart>
</soap-header>
<soap-header>
<namespaceURI>
http://x.y.z</namespaceURI>
<localpart>lang</localpart>
</soap-header>
</handler>
2. Weblogic
<handler-chains>
<handler-chain name="myChain">
<handler class-name="weblogic.handler.ServerHandler" />
</handler-chain>
</handler-chains>
3. Oracle AS
<handler>
<handler-name>serverHandler</handler-name>
<handler-class>oc4j.handler.ServerHandler</handler-class>
<soap-header xmlns:wsa1="http://x.y.z">test</soap-header>
</handler>
Hope this help.
Thanks,
Amit Srivastava..