cheenath.com
- Home
- Search
- About Me
- AJAX Tools
- WLS Tutorial
  - Setup
  - Introduction
  - Contact
  - FAQ
  - Useful Links
- AutoBuild
- SOAP Router


JAX-RPC Handlers

This example shows how to use Handlers with web service. Handlers can read/edit the SOAP request/response message. This example shows both client side and server side handlers.

Steps involved in writing this example:

  1. Write backend java class for the web service - HelloWorldService.java
  2. Write Server side handler - ServerHandler.java
  3. Write Handler info XML file - hello-world-handler-info.xml
  4. Write ant build file to compile and build the service. build.xml
    1. compile HelloWorldService.java and ServerHandler.java to output/WEB-INF/classes
    2. run autotype to generate the codecs for the non build in types
    3. run source2wsdd to generate web-services.xml deployment file
    4. put the DD file in output/WEB-INF/ directory
    5. run clientgen on the ear file to generate the client stub
    6. jar up output directory as a ear file
    7. compile the client side code Main.java and ClientHandler.java
    8. deploy the applicaiton by copying the ear file into the applications directory of the server
  5. Follow the instructions here to build, run and test the service.

Browse files online:

Download :

[ This page was last updated May 04 2003 00:20:49. ]

      

©2006 Manoj Cheenath