Importing Ant files for your Web services project

To generate a Web service using Ant tasks, you must import the sample properties files into your workspace.
To import the required Ant files:
  1. Create a project.
  2. In the Project Explorer, right-click your new project and select File > New > Other > Web Services.
  3. In the dialog box, select Ant Files and then click Finish. The wsgen.xml file is imported and displayed in the Project Explorer.
  4. Two extra files are imported into your project: axisclient.properties and axisservice.properties. Delete these files.
  5. Right-click your project and select Import > Import.
  6. In the dialog box, select General > File System and then click Next.
  7. 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.
  8. 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.
  9. 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.
  10. Click Finish. The samples properties files that you chose are imported and displayed in the Project Explorer

Feedback