Help coderanch get a
new server
by contributing to the fundraiser
  • 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

Message Handlers and Axis

 
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

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

Thanks!
 
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi!
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!
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic