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


Start from schema

This example shows how to author web service, starting from schema.

Steps involved in writing this example:

  1. Write schema for the value types used by the web service - World.xsd
  2. Use autotype ant task to generate value types and types.xml file from the schema.
  3. Write backend java class for the web service, this class can use types generated in the step above - HelloWorldService.java
  4. Write ant build file to compile and build the service. build.xml
    1. compile HelloWorldService.java to output/WEB-INF/classes
    2. run autotype to generate the codecs for other non build in types. This auto type will merge the type mapping available in the first types.xml file
    3. run source2wsdd to generate web-services.xml deployment file and WSL file
    4. put the DD file in output/WEB-INF/ directory
    5. run clientgen on the WSDL file to generate the client jar
    6. jar up output directory as a war file
    7. compile the client side code Main.java and
    8. deploy the applicaiton by copying the war 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 October 08 2003 13:06:30. ]

      

©2006 Manoj Cheenath