apache > ws.apache
WSRF
 

Run the Wsdl2Java Tool

Introduction

In this step of the tutorial, the Apache WSRF Wsdl2Java tool is used to generate a set of artifacts for the filesystem example. The tool takes a WSDL as its input and outputs the following artifacts:

  • XMLBeans for all XML Schema types and elements defined in the types section of the WSDL
  • an abstract base Resource class
  • an abstract base Service class
  • an abstract base Home class
  • a Resource class
  • a Service class
  • a Home class
  • a CustomOperationsPortType interface
  • a PropertyQNames interface
  • an Axis deploy.wsdd file
  • a wsrf-config.xml file
Note
The abstract classes and interfaces should NEVER be modified.

Generating the Artifacts

The Ant script (WORK_DIR/build.xml) contains a target for the Wsdl2Java tool. To generate the artifacts for the filesystem example:

  1. From a command prompt, change directories to WORK_DIR.
  2. Enter the following command: ant generate

The artifacts are generated and placed in WORK_DIR/generated. For more information about the WSDL2Java tool and the generated artifacts, see Using the WSDL2Java Tool in the Developer's Guide.

go to the previous step Back go to the next step Next