Creating a Web service client using Ant tasks in the Workbench

You can use Ant through the Eclipse workspace to generate a Web service client using the CXF run-time environment.

Before creating the Web service you must:

To begin you need to modify the Ant properties file than was imported using the Ant Files wizard in the prerequisites.

  1. Edit the cxf_client.properties file that you imported in the prerequisites step.
    1. Ensure the scenarioType parameter is set to client.
    2. Set the initialSelection parameter to the location of your WSDL file.
    3. All other parameters are optional and should be deleted if not explicitly set. The default values for the remaining properties will be retrieved from the Dynamic Web project settings and preferences. For additional information on how to set these parameters refer to:

      Save the properties file.

  2. Select the cxf_client.xml file and from the top level menu and select Run > External Tools > External Tools Configurations.
  3. In the dialog that opens select Ant Build and then select the New launch configuration button in the toolbar. Select the JRE tab and select Run in the same JRE as the workspace. Click Apply and then Run.
  4. A Build Successful message will be output to the console once the Web service has been generated.

Related tasks

Creating a Web service using Ant tasks in the Workbench