File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Services and the fly likes Message Handlers and Axis Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Message Handlers and Axis" Watch "Message Handlers and Axis" New topic

Message Handlers and Axis

Sachet Varma
Ranch Hand

Joined: Jun 07, 2009
Posts: 39

Could someone please guide me in creting a Handler class. I have created a Handler class that implements the Handler interface and have defined the handleRequest(MessageContext ...) method

My prob is , with Axis , am not sure which are the deployment files that need to be tweaked since am not sure which one corresponds to the webservice.xml and so on.

Could someone please guide me as to which deployment files need to be modified to add a Handler

Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
If the web service stack you are using adhere to the JAX-WS specification, then have two alternatives:
1) Use the @HandlerChain annotation on either the service implementation class, for handlers on the server side, or on a web service reference, for handlers on the client side.
The @HandlerChain annotation refers to an XML file in which the handlers are defined. This is an example of such a file:

2) Use the webservices.xml deployment descriptor:

Best wishes!
I agree. Here's the link:
subject: Message Handlers and Axis
It's not a secret anymore!