JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
Oracle Java CAPS HTTP Binding Component Tutorial     Java CAPS Documentation
search filter icon
search icon

Document Information

Processing an Order in a Purchase Order System

Tutorial Requirements

Prerequisites

System Requirements

Software Needed for the Tutorials

Project Overview

Scenario Message Flow

Core System Pieces

Configuring the Tutorial Environment

To check the status of GlassFish

To configure GlassFish

To start GlassFish

Creating a New Project

To Create a New Project

Creating the XML Schemas

Creating the inventory.xsd Schema

To create the inventory.xsd schema

To add a complex type to the XML Schema

Add Local Elements to the XML Schema

To add a global element

To validate the XML Schema

Creating the purchaseOrder.xsd Schema

To create the purchaseOrder.xsd schema

To add a complex type to the XML schema

To add local elements to the XML schema

To add a global element

To validate the XML schema

Creating and Configuring the WSDL Documents

Creating the InventoryService WSDL Document

To create the WSDL using the New WSDL Document wizard

To configure the InventoryService WSDL document:

Creating the POService WSDL Document

To create the POService WSDL document

To configure the POService WSDL document:

Creating the InventoryService BPEL Process

To create the InventoryService BPEL process

To Create the InventoryService business process using the BPEL Designer

To specify the business logic for the InventoryService BPEL process

Create the POService BPEL Process

To create the POService BPEL process

To Create the POService business process using the BPEL Designer

To specify the business logic for the POService business process

Building the Project

To compile and package the project

Creating and Deploying the Composite Application

To create the Composite Application project and add the JBI module

To build and deploy the Composite Application

Testing the HTTP Binding Component Sample Project

To run the HTTP-SOAP-PO-JBI project

Project Summary

Creating and Configuring the WSDL Documents

The HTTP-SOAP-PO-BPEL project includes two WSDL documents, one for the inventory service, and one for the purchase order service.

Creating the InventoryService WSDL Document

The InventoryService WSDL document enables the project to check product availability.

To create the WSDL using the New WSDL Document wizard

  1. From the Projects window, right-click the HTTP-SOAP-PO-BPEL project and select New > WSDL Document from the pop-up menu.

    The New WSDL Document wizard appears displaying the Name and Location page.

  2. Enter InventoryService as the file name.
  3. Select Concrete WSDL Document as the WSDL Type, SOAP as the Binding, and Document Literal as the Type. Click Next.
  4. From the Page 3 of the wizard, Abstract Configuration, do the following:
    1. For Operation Name, enter isInventoryAvailable.
    2. Leave the Operation Type as the default value, Request-Response Operation.
    3. For Input, enter purchaseOrder as the Message Part Name.
    4. For the input Element or Type value, browse to and select By File -> src/purchaseOrder.xsd -> Elements -> purchaseOrder as the value.
    5. For Output, enter inventoryStatus as the Message Part Name.
    6. For the output Element or Type value, browse to and select By File -> src/inventory.xsd -> Elements -> inventory as the value.
    7. Make sure that the Generate partnerlinktype automatically checkbox is selected, and click Next.
      image:Graphic displays the New WSDL Document Wizard, as described in context.
    8. From page 4 of the wizard click Finish. The new WSDL is added to the project tree in the Projects window and the WSDL Editor appears in WSDL view.

To configure the InventoryService WSDL document:

The InventoryService WSDL document uses the default SOAP WSDL properties. No changes are necessary.

Creating the POService WSDL Document

The POService WSDL document enables the project to send a purchase order.

To create the POService WSDL document

  1. From the Projects window, right-click the HTTP-SOAP-PO-BPEL project and select New -> WSDL Document from the pop-up menu.
  2. Enter POService as the file name.
  3. Select Concrete WSDL Document as the WSDL Type, SOAP as the Binding, and Document Literal as the Type, and click Next.
  4. From the page 3 of the wizard, Abstract Configuration, do the following:
    1. For Operation Name, enter handlePurchaseOrder.
    2. Leave the Operation Type as the default value, Request-Response Operation.
    3. For Input, enter purchaseOrder as the Message Part Name.
    4. For the input Element or Type value, browse to and select By File -> src/purchaseOrder.xsd -> Elements -> purchaseOrder as the value.
    5. For Output, enter receipt as the Message Part Name.
    6. For the output Element or Type value, browse to and select By File -> src/purchaseOrder.xsd -> Elements -> purchaseOrder as the value.
    7. Make sure that the Generate partnerlinktype automatically checkbox is selected, and click Next.
      image:Graphic displays the New WSDL Document Wizard dialog box as described in context.
    8. From page 4 of the wizard, click Finish. The new WSDL is added to the project tree in the Projects window and the WSDL Editor appears in WSDL view.

To configure the POService WSDL document:

The POService WSDL document uses the default SOAP WSDL properties. No changes are necessary.