# Creating Web Services Projects

Use web service projects to develop web services that conform to standards, such as SOAP for message exchange, XML for messages to or from the service, and a WSDL that specifies the web service's public interface.

Each Web service project produces a JEE module, each of which is included in the complete Eclipse application's EAR file when you build your application for deployment.

The contents of Web service projects are accessed through the test client which allows you to access each operation of the Web service by clicking on a button. For more information, see Testing Web Services.

## Creating a new Web Service Project

Using OEPE, you can create a Web service project.

To create a Web service project:

1. Right-click the Project Explorer and select New > Project from the drop-down menu. This opens the New Project dialog.

2. Select WebLogic > Web Services > Web Service Project from the list, and then click Next.

3. On the New Web Service Project dialog, provide a name and location for your project, select and configure your target runtime, specify your EAR and working sets settings, and then click Finish.

## Creating a Web Service Project From an Existing Dynamic Web Project

Using Eclipse IDE and Oracle WebLogic Server, you can create a Web service project from an existing dynamic Web project by adding a Web Services facet.

Dynamic Web projects are used to create Web applications.

User interface components are constructed from Java Server Pages (JSPs), which are Web pages that can interact with server resources to produce dynamic content.

Each dynamic Web project ultimately produces a J2EE module. Each J2EE module is included in the complete application's EAR file when the application is built for deployment.

The contents of Web projects are accessed through URLs.

A dynamic Web project has two core facets: the Dynamic Web Module (the enable facet) and the WebLogic Web App Extensions facets. This project may contain a number of optional facets, one of which is the Web Service facet.

To create a Web service project from an existing dynamic Web project:

1. Open your dynamic Web project in Project Explorer.

2. Right-click on the project name and select Properties from the drop-down menu. This will open the Properties dialog.

3. Select Project Facets from the tree-control on the dialog's left panel.

4. Select WebLogic Web Services from the Project Facet list on the dialog's right panel.

5. Click Apply.