This is the WSO2 Data Services Server documentation version 2.6.3

Java2WSDL

The Java2WSDL tool allows you to generate the WSDL for Java code that is already written to provide a Web service. This tool helps you to develop Web services in the code first approach, where the development starts with the code and thereafter you derive the WSDL from the source.

Follow the instructions below to use the Java2WSDL tool.

1. Log on to the Data Services Server Management Console.

2. Click the "Tools" menu and select "Java2WSDL."

3. In the "Add Resources" panel, click "Browse" to locate the file you want to add.

Tip

Only .jar files can be added as resources. If you want to add more than one file, click the plus sign.

4. Enter values as required and click "Generate."

Note

Each field is described in the "Java2WSDL" user interface itself. The "class name" of the service implementation is a mandatory field.