Creating and editing JAX-WS web service handlers
You can add JAX-WS logical or protocol handlers to intercept inbound and outbound messages to or from web services and their clients. You can select from any currently available JAX-WS web services and clients and start the Handler Creation Wizard. In the wizard, you provide the class name of the handler, the handler name, and an optional display name, and specify the type of handler. When finished, the wizard generates the skeleton handler code and updates the applicable deployment descriptor.
About this task
- Add or edit service-side handlers
- Add or edit client-side handlers
Adding or editing service-side handlers
Procedure
Adding client-side handlers
About this task
Procedure
Testing web service handlers
Procedure
-
Modify the generated handler classes (such as by adding
println
). - Run the web service client sample JSP and test the web services to verify that the handlers intercept the traffic correctly.