Generating code from WSDL

You can use Eclipse STP to generate stub code from WSDL.
Note: You can only use one generation type per project.

To generate code:

  1. Ensure that you have JAX-WS-enabled your project.
  2. Right-click your WSDL file.
  3. Select JAX-WS Tools > Generate Code from the context menu.
  4. In the Generate Code dialog box, select any combination of Implementation, Server or Client.
  5. Complete the Generate Code wizard as follows:
    1. If you want to generate asynchronous invocation stub code, select Specify Binding Files and click Browse to select an external binding declaration file.
    2. In the Generation Options section, you can select one of the following code generation types: Implementation creates a service implementation that you can run inside a container; Server and Client allow you to create executable applications.
  6. Click Finish.