# Generating stub code

You can use Eclipse STP to generate stub code for your Web service.
Note: You can only use one generation type per project.

To generate code:

1. Right-click your WSDL file.
2. Select JAX-WS Tools > Generate Code from the context menu.
3. In the Generate Code dialog box, select any combination of Implementation, Server or Client.
4. 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.
5. Click Finish.