Hello World
This example shows how to write a simple Hello World web service using
WLS 7.0
Steps involved in writing this example:
- Write backend java class for the web service -
HelloWorldService.java
- Write ant build file to compile and build the service.
build.xml
- compile HelloWorldService.java output/WEB-INF/classes
- run autotype to generate the codecs for the non build in types
- run source2wsdd to generate web-services.xml deployment file
- put the DD file in output/WEB-INF/ directory
- jar up output directory as a ear file
- run clientgen on the ear file to generate the client stub
- compile the client side code
Main.java
- deploy the applicaiton by copying the ear file into the
applications directory of the server
- Follow the instructions here
to build, run and test the service.