Step 1. Configure the TroubleTicketSystemServer project for Web Services development 

Time to complete this step: 10 minutes

The 10gR3 release of WebLogic Server supports both Java API for XML-Based Web Services 2.1 (JAX-WS) and Java API for XML-Based RPC 1.1 (JAX-RPC) Web Services.
JAX-RPC, an older specification, defined APIs and conventions for supporting XML Web Services in the Java Platform as well support for the WS-I Basic Profile 1.0 to improve interoperability between JAX-RPC implementations. JAX-WS is a follow up to JAX-RPC 1.1 and it implements many of the new features in Java EE 5.

The Oracle Enterprise Pack for Eclipse (OEPE) provides a facility for creating the JAXB classes from a given XML Schema Document (XSD) file. The Spring integration of OEPE allows to generate WebLogic Web Service (based on JAX-WS) for Spring beans.

In this tutorial part, you will be provided an XSD file for generating JAXB classes. You will also generate JAX-WS WebLogic Web Services for Spring beans developed in the previous part. The JAX-WS WebLogic Web Service will use the JAXB type for messaging and delegates the request to the respective Spring bean.

In this step, you will configure the TroubleTicketSystemServer  project for the WebLogic Web Service and create the necessary packages.  

Before you start the tutorial steps, download the and unzip it. The extracted resources folder has set of Java classes and an XSD file.

You will perform the following tasks in this step:

Configure the TroubleTicketSystemServer project for WebLogic Web Service development 

  1. In the Project Explorer view, right-click the TroubleTicketSystemServer project and select Properties from the context menu. This will open the Properties dialog as shown below. Select the Project Facets item in the left panel. That shows list of selected project facets as configured for the  TroubleTicketSystemServer project. 
  2. Select the following project facets: 
    • WebLogic Web Service Clients (version 2.1) 
    • WebLogic Web Services (version 2.1) 

  3. Click OK in the Properties dialog for the TroubleTicketSystemServer project. That completes the configuration of developing WebLogic Web Services for the TroubleTicketSystemServer project. 
  4. In the Project Explorer view, right click the TroubleTicketSystemServer > Java Resources > src folder and choose New > Package. Enter the package name and click Finish


  5. That creates a new Java package under which you will put the Java web services. 


Create Server for deployment

  1. Switch to the Java EE perspective, if that is not the default. Create a server by right-clicking in the Servers view (towards the bottom of the screen) and choosing New > Server.

  2. Choose the Oracle WebLogic Server 10gR3 and click Next


  3. After definining the server, you must specify a domain. A domain contains one or more server configurations. Click the hyperlink to launch the Configuration Wizard to create new domain.

  4. That launches Oracle WebLogic Configuration Wizard.

  5. Accept the defaults. Click Next to navigate through the wizard. This should create a domain named " base_domain" in <bea_home>\user_projects\domains\base_domain.
  6. Once the domain creation is completed, click the Browse... button in the OEPE New Server wizard for selecting a domain directory and browse to the newly created domain location i.e. <bea_home>\user_projects\domains\base_domain .

  7. Click Next.
  8. In Add and Remove resources page, select the TroubleTicketSystemEAR J2EE project and click  Add > to configure it on the server. 

  9. Click Finish.
  10. That creates a new server entry and configures the TroubleTicketSystemEAR project to it.

Click the arrow below to navigate through the tutorial: