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


Web Service without Data binding

This example shows how to pass XML without data binding.

Steps involved in writing this example:

  1. Write backend java class for the web service - HelloWorldService.java
  2. Write value type to hold the xml string - XmlString.java
  3. Write codec to convert XmlString - XmlStringCodec.java
  4. Write web-services.xml DD file for the service. This file should have the schema for the XmlString and the type-mapping to map the schema types to XmlString web-services.xml
  5. Write ant build file to compile and build the service. build.xml
    1. compile HelloWorldService.java, XmlString.java and XmlStringCodec.java to output/WEB-INF/classes
    2. copy the DD file in output/WEB-INF/ directory
    3. jar up the output dir as a ear file
    4. run clientgen on the ear file to generate the client stub
    5. compile the client side code Main.java and
    6. deploy the applicaiton by copying the ear file into the applications directory of the server
  6. 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:30. ]

      

©2006 Manoj Cheenath