«^»
9.1. The easiest way of providing an Axis Web Service

We first look at the easiest way in Axis of providing a Web Service.

First, produce a Java class declaration containing the methods that you wish to be made available. For example, we could produce:

0210: public class Convert {
0211:    public double toFahrenheit(double pCentigrade) {
0212:       return 32 + pCentigrade*9/5;
0213:    }
0214: }
Store this text in a file with a .jws extension. In the above example, the text would be stored in a file called Convert.jws.

Put this file in the directory:

%CATALINA_HOME%\webapps\axis
And that's it! You have a Web Service available at:
http://localhost:8080/axis/Convert.jws
If you use a browser to go to this URL, you will get a WWW page that says:
There is a Web Service here
Click to see the WSDL 
If you do click on Click to see the WSDL, your browser will go to:
http://localhost:8080/axis/Convert.jws?wsdl
You will then be able to see the WSDL of this Web Service. (As mentioned earlier, depending on the browser you are using, you may need to click on View Page Source to see this XML.)

Having provided a Web Service, you can now follow the steps given earlier if you want to provide a client that accesses this Web Service.

The Axis User's Guide says ‘JWS web services are intended for simple web services. You cannot use packages in the pages, and as the code is compiled at run time you can not find out about errors until after deployment’. The Axis User's Guide gives details of alternative ways of deploying Web Services which it says should be used for ‘production quality web services’.