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


Multiple Web Services in one war

This example shows how to pacakge multiple web services in a single war.

Steps involved in writing this example:

  1. Write the complex type - World.java
  2. Write backend java class for the first web service - HelloWorldService.java
  3. Write backend java class for the secound web service - HelloWorldService2.java
  4. Write ant build file to compile and build the service. build.xml build-webss.xml
    1. compile HelloWorldService.java and HelloWorldService2.java to output/WEB-INF/classes
    2. run autotype and source2wsdd on both HelloWorldService and HelloWorldService2 java files.
    3. run wsdd-merge ant task to merge both DD files in to one web-services.xml DD file. Put this DD file in output/WEB-INF/ directory
    4. run clientgen on the WSDL files to generate the client jar
    5. jar up output directory as a war file
    6. compile the client side code Main.java
    7. 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 April 19 2003 07:28:42. ]

      

©2006 Manoj Cheenath