# WSDL2Code Tool

The WSDL2Code tool is used to generate Java code to provide or consume a Web service for a given WSDL. You can use this tool to develop Web services for contract first development. This tool provides many options to customize your code.

1. In the navigator, under Tools, click WSDL 2Java. The WSDL2 Code page appears.
2. Fill in the fields as required.
3. Enter the URL of the WSDL in the the uri field. Entering a value in this field is mandatory.
4. Click Generate.

Note 1: Each option is described on the WSDL2 Code page.

Note 2: If the WSDL has XSDs that are imported from the file system, then first archive those XSDs and WSDL together into a zip. Then upload the zip.

Figure 1: WSDL2Code User Interface