JAX-WS Handlers

Handler Interface 

  • JAX-WS 2.0 defines a Handler interface 
    • Contains 
      • handleMessage(C context) 
      • handleFault(C context) 
    • C extends MessageContext 
    • A property in the MessageContext object is used to determine if the message is inbound or outbound 
  • Two sub-interfaces 
    • SOAPHandler & LogicalHandler

Handler Types 

  • SOAPHandler objects have access to the full soap message including headers 
  • LogicalHandler are independent of protocol and have access only to the payload of the message

You must have an active subscription to download PDF and Lab Zip of this course topic.Please click the "Subscribe" button or the "Login" button if you already have an account.