To generate a Web service using Ant tasks, you must import the
sample properties files into your workspace.
To import the required Ant files:
- Create a project.
- In the Project Explorer, right-click your new project and select .
- In the dialog box, select Ant Files and
then click Finish. The wsgen.xml file
is imported and displayed in the Project Explorer.
- Two extra files are imported into your project: axisclient.properties and axisservice.properties. Delete these files.
- Right-click your project and select .
- In the dialog box, select and then click Next.
- For the From directory field, use the Browse button
to select the wsgenTemplates directory in your product
installation. For example, this directory might be C:\Program Files\IBM\SDP70\runtimes\wsdk\wsgenTemplates.
- Select the check box for the was_jaxrpc_client.properties file.
This sample properties file is referred to by wsgen.xml.
You can modify the properties in the sample file to generate a Web service
client.
- Select the check box for the properties file that matches the development
scenario of your Web service:
Properties File |
Scenario of Web
Service |
was_jaxrpc_bujava.properties |
Bottom-up Java™ |
was_jaxrpc_buejb.properties |
Bottom-up EJB |
was_jaxrpc_tdjava.properties |
Top-down Java |
was_jaxrpc_tdejb.properties |
Top-down EJB |
This sample properties file is referred to by wsgen.xml.
You can modify the properties in the sample file to generate a Web service.
- Click Finish. The samples
properties files that you chose are imported and displayed in the Project
Explorer