Apache Axis provides a WSDL2Java command-line tool that you can use to generate server stubs
and deployment descriptors for a given WSDL file. In this lab, you place the example implementation of the
calculator service in the server stub files. The deployment descriptors provide the information required by
Axis to deploy and remove the service.
Make sure the calc.wsdl file created in the previous lab is in a current folder.
Or, download the WSDL file.
| -o |
base output directory |
| -s |
server-side generation is on |
| -p calculator.ws |
package in which to place the code |
| calc.wsdl |
name of the WSDL file |
| Deploy.wsdd |
passed to Apache Axis to implement the web service |
| Undeploy.wsdd |
passed to Apache Axis to remove the web service |
| CalculatorSoapBindingImpl.java |
implementation code of the web service
Note: You must edit this file to implement the server code.
See "Implement the server code" on page 186 for more information. |
| Calculator.java |
remote interface to the calculator |
| CalculatorService.java |
service interface of the web service |
| CalculatorServiceLocator.java |
helper for retrieving a handle to the web service |
| CalculatorSoapBindingStub.java |
client stub code that encapsulates the client access |
Go to the next exercise in “Building a Calculator Web Service Using Apache Tomcat/Axis”,
Implement the Server Code.