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


Using org.w3c.Dcoument data type

This example shows how to wirte a web service that use org.w3c.Document data type. Due to CR101416, the dynamic proxy client invoke is failing. This will be fixed for WLS 8.1 SP1.

Steps involved in writing this example:

  1. Write backend java class for the web service - HelloWorldService.java
  2. Write ant build file to compile and build the service. build.xml build-webss.xml
    1. compile HelloWorldService.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 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. Write the client side interface for the web service. You need this interface only when same XML data type mappes to multiple java types and you want to use a java type that is not the default mapping. HelloService.java
    8. compile the client side code Main.java
    9. deploy the applicaiton by copying the war file into the applications directory of the server
  3. Follow the instructions here to build, run and test the service.

Browse files online:

Download :

[ This page was last updated April 19 2003 07:32:34. ]

      

©2006 Manoj Cheenath