# Generating Web Services for Spring Service Beans

You can generate a WebLogic web service from an existing Spring service bean for your JAX-WS Web service project.

To generate the web service:

1. Add the WebLogic Web Services facet to an Eclipse project configured with the Spring 2.5 facet and containing Spring service beans.

   For more information, see Generating Spring Artifacts..

2. In the Project Explorer, right-click your project, select New > Other, and then select Oracle > WebLogic > WebLogic Web Service for Spring Beans on the New dialog. This opens the Select Spring Service Bean dialog.

3. On the Select Spring Service Bean dialog, specify the Spring bean configuration. The list is populated with Spring service beans defined in the configuration file. Select a service bean and service methods from the service interface that you want to expose as WebLogic Web Service, and then click Next.

4. On the Web Service Class Name page, you may choose to specify the Web service class name, package name and output directory, and then click Finish.

Upon completion, Eclipse creates the WebLogic Web Service class which is automatically wired up with Spring bean and delegate service calls to the Spring bean implementation.