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

Project Overview

The purchase order handling system in this scenario is represented by a web service implemented using GlassFish Application Server with the JBI framework.

Scenario Message Flow

The message flow of the Purchase Order scenario is as follows:

  1. The web client, using some client-side scripting language such as JavaScript, takes the purchase order information entered into the web form and packages it into a SOAP message. The format of the SOAP message is defined using a WSDL.

  2. The SOAP message is sent to a web service endpoint hosted by the HTTP Binding Component.

  3. The HTTP Binding Component transforms the SOAP message into a Normalized Message. The Normalized Message is sent to the Normalized Message Router.

  4. The Normalized Message Router routes the Normalized Message to the BPEL Service Engine.

  5. The BPEL Service Engine interprets the purchase order information and properly invokes other BPEL processes to fulfill the request.

  6. The BPEL Service Engine creates a response message in the form of a Normalized Message. The Normalized Message is sent to the Normalized Message Router.

  7. The HTTP BC receives the response message and converts it to a SOAP message. The SOAP Message is sent back to the web client as a proper response as defined by the WSDL document.

  8. The web client takes the response and creates a human-readable HTML page to notify the user that the purchase order was either accepted or rejected.

Duke's Book Store uses an automated purchase order system with an open interface through which anyone can make a purchase. To accomplish this they use the Java Business Integration framework. Each process is implemented using the BPEL language. Every interface is exposed as a WSDL, with SOAP over HTTP as the underlying messaging and transport.

Core System Pieces

The system's core pieces are the PurchaseOrder interface and the Inventory interface.