This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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
Similar Threads
How to view the Soap Message
axis simple examples error
can any one give me the solution ...
Webservices deployment
Passing ArrayList from JSP to Servlet