Web Services Development: Creating Web Service Projects

This document describes the following:


1. Creating a Web Service Project From Scratch

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 J2EE 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.

Using OEPE, you can create a Web service project by following this procedure:

  1. Right-click the Project Explorer and select New > Project from the drop-down menu. This will open the New Project dialog.
  2. Select WebLogic Web Services > Web Service Project from the list, as Figure 1 shows, and then click Next.
    This will open the New Web Service Project dialog.



    Figure 1.
    New Project Dialog


  3. On the New Web Service Project dialog, provide a name for your project, select Oracle WebLogic Server v.N as your target runtime, select Add project to an EAR, and then click Finish.



2. Creating a Web Service Project From an Existing Dynamic Web Project

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

To do so, follow this procedure:

  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, as Figure 2 shows.
  5. Click Apply.
  6. Click OK.



  7. Figure 2.
    Properties Dialog



3. Related Information


3.1 Dynamic Web Projects

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.