Chapter 9. Create web services

Table of Contents

9.1. Web services with JWS files

Here is the easiest way to create a web service with Axis: Take a simple java class, which has one or more public methods and rename the *.java file in *.jws.

Like JSP compiled to servlets, Axis will compile these jws files at the first access into a complete web service. An explicit deployment is not necessary.

The file EchoHeaders.jws which is included in the Axis distrubution, is a sample for such a web service. The compiled class file is located in WEB-INF/jwsClasses. If you want to debug such web services some dodges are nessesary. In addition, the control via a deployment descriptor is not intended here.