If you prefer not to use the Web service wizard, you can use Ant
files to create Web services and clients using the Axis runtime environment.
The Web services Ant tasks can be run in two ways: through the Eclipse workspace
using , or they can be run headless through the command line. Once
you have created your Web service, you can then deploy it to a server, test
it, and publish it as a business entity or business service.
Prerequisites
Before you create a Web service or
client using the Ant tasks, you need to complete a few prerequisites.
- Install Apache Tomcat, create a server, and create a dynamic Web project
associated with that server as described in Creating an Apache Tomcat server and Web project
- Import the required Ant files into your workspace:
- Create a project.
- Import the required Ant files. Select .
- Select the project you created, and click Finish.
Three files will be imported into this project:
- wsgen.xml - this is the Ant file.
- axisservice.properties - this is a sample Ant properties file referenced
by the Ant file. You can modify the properties in this file to generate a
Web service.
- axisclient.properties - this is a sample Ant properties file referenced
by the Ant file. You can modify the properties in this file to generate a
Web service client.
- Create a dynamic Web project for the Web service or client.
Creating a Web service or client
Once you've completed
the prerequisites you can do the following: