• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Message Handlers and Axis

Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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

Ranch Hand
Posts: 2198
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
    Bookmark Topic Watch Topic
  • New Topic