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 in the WSO2 ESB.
1. Sign in. Enter your user name and password to log on to the ESB Management Console.
2. Click the "Tools" button to access the "Tools" menu.
3. From the "Tools" menu, select "Java2WSDL."
4. Click "Browse" to locate the file you want to add.
Tip
If you want to add more than one file, click the plus sign button.
5. Enter values as required.
Note
Each field is described in the user interface.
6. Click "Generate."