Oracle Fusion Middleware Tutorial for Running and Building an Application with Oracle SOA Suite, 11G Release 1 (11.1.1) E10275-02
Total Page:16
File Type:pdf, Size:1020Kb
Oracle® Fusion Middleware Tutorial for Running and Building an Application with Oracle SOA Suite 11g Release 1 (11.1.1) E10275-02 August 2009 Oracle Fusion Middleware Tutorial for Running and Building an Application with Oracle SOA Suite, 11g Release 1 (11.1.1) E10275-02 Copyright © 2009, Oracle and/or its affiliates. All rights reserved. Primary Author: Deborah Steiner Contributor: Heidi Buelow, Ananda Channaiah, Vamsee Goruganthu, Mark Kennedy, Greg Mally, Lynn Munsinger, Prasen Palvankar, Marja-Liisa Ranta, Clemens Utschig This software and related documentation are provided under a license agreement containing restrictions on use and disclosure and are protected by intellectual property laws. Except as expressly permitted in your license agreement or allowed by law, you may not use, copy, reproduce, translate, broadcast, modify, license, transmit, distribute, exhibit, perform, publish, or display any part, in any form, or by any means. Reverse engineering, disassembly, or decompilation of this software, unless required by law for interoperability, is prohibited. The information contained herein is subject to change without notice and is not warranted to be error-free. If you find any errors, please report them to us in writing. If this software or related documentation is delivered to the U.S. Government or anyone licensing it on behalf of the U.S. Government, the following notice is applicable: U.S. GOVERNMENT RIGHTS Programs, software, databases, and related documentation and technical data delivered to U.S. Government customers are "commercial computer software" or "commercial technical data" pursuant to the applicable Federal Acquisition Regulation and agency-specific supplemental regulations. As such, the use, duplication, disclosure, modification, and adaptation shall be subject to the restrictions and license terms set forth in the applicable Government contract, and, to the extent applicable by the terms of the Government contract, the additional rights set forth in FAR 52.227-19, Commercial Computer Software License (December 2007). Oracle USA, Inc., 500 Oracle Parkway, Redwood City, CA 94065. This software is developed for general use in a variety of information management applications. It is not developed or intended for use in any inherently dangerous applications, including applications which may create a risk of personal injury. If you use this software in dangerous applications, then you shall be responsible to take all appropriate fail-safe, backup, redundancy, and other measures to ensure the safe use of this software. Oracle Corporation and its affiliates disclaim any liability for any damages caused by use of this software in dangerous applications. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. This software and documentation may provide access to or information on content, products, and services from third parties. Oracle Corporation and its affiliates are not responsible for and expressly disclaim all warranties of any kind with respect to third-party content, products, and services. Oracle Corporation and its affiliates will not be responsible for any loss, costs, or damages incurred due to your access to or use of third-party content, products, or services. Contents Preface ................................................................................................................................................................. xi Audience....................................................................................................................................................... xi Documentation Accessibility..................................................................................................................... xi Related Documents .................................................................................................................................... xii Conventions ................................................................................................................................................ xii 1 Introduction to the SOA Sample Application 1.1 Introduction to Fusion Order Demo ........................................................................................ 1-1 1.2 Setting Up the Development Environment for Creating the WebLogic Fusion Order Demo Application ..................................................................................................................... 1-2 1.2.1 Task 1: Install Oracle JDeveloper Studio ......................................................................... 1-2 1.2.2 Task 2: Install the Fusion Order Demo Application....................................................... 1-2 1.2.3 Task 3: Install Oracle SOA Suite ........................................................................................ 1-2 1.2.4 Task 4: Create a Connection to an Oracle WebLogic Server ......................................... 1-5 1.3 Viewing the WebLogicFusionOrderDemo Application Artifacts ....................................... 1-6 1.4 Understanding the OrderBookingComposite Flow............................................................... 1-7 2 Running the Sample Application 2.1 Deploying the Fusion Order Demo Applications .................................................................. 2-1 2.1.1 Task 1: Install the Schema for the Fusion Order Demo Application............................ 2-1 2.1.2 Task 2: Deploy the Store Front Module............................................................................ 2-2 2.1.3 Task 3: Deploy the WebLogic Fusion Order Demo Application .................................. 2-4 2.2 Placing Two Orders in the Store Front .................................................................................... 2-6 2.3 Starting Fusion Middleware Control to Monitor Orders................................................... 2-10 2.4 Monitoring the First Order ..................................................................................................... 2-10 2.5 Monitoring the Second Order ................................................................................................ 2-18 2.5.1 Task 1: View the Order in the Fusion Middleware Control....................................... 2-18 2.5.2 Task 2: Use the Oracle BPM Worklist to Approve the Order .................................... 2-21 2.5.3 Task 3: View the Approval in the Fusion Middleware Control................................. 2-21 2.6 Undeploying the Composites for the WebLogic Fusion Order Demo Application ...... 2-23 3 Creating the SOA Application 3.1 About the PartnerSupplierComposite Composite................................................................. 3-1 3.2 Creating the WebLogicFusionOrderDemo Application and the PartnerSupplierComposite Composite ....................................................................................................................... 3-2 v 3.2.1 Task 1: Create the WebLogicFusionOrderDemo Application and the PartnerSupplierComposite Composite 3-2 3.2.2 Task 2: Create the ExternalPartnerSupplier BPEL Process............................................ 3-3 3.2.3 Task 3: Modify the ExternalPartnerSupplier BPEL Process .......................................... 3-6 3.2.4 Task 4: Deploy the PartnerSupplierComposite Composite........................................... 3-9 3.2.5 Task 6: Initiate a Test Instance for the PartnerSupplierComposite Composite.......... 3-9 4 Creating the OrderBookingComposite Composite 4.1 About the OrderBookingComposite Composite.................................................................... 4-1 4.2 Approaches for Creating OrderBookingComposite.............................................................. 4-4 4.3 Creating the OrderBookingComposite Project....................................................................... 4-5 4.3.1 Task 1: Create the OrderBookingComposite Project ...................................................... 4-5 4.3.2 Task 2: Create the OrderProcessor BPEL Process ........................................................... 4-5 4.3.3 Task 3: Add the ADF Business Components Service Runtime Library....................... 4-8 4.4 About the OrderProcessor Process........................................................................................... 4-8 5 Creating the First Half of the OrderProcessor BPEL Process 5.1 Overview of Tasks for Creating the First Half of OrderProcessor ...................................... 5-1 5.2 Copying Services Used by the OrderProcessor BPEL Process............................................. 5-2 5.3 Adding the StoreFrontService Service ..................................................................................... 5-3 5.3.1 Task 1: Copy the WSDL Needed for StoreFrontService................................................. 5-3 5.3.2 Task 2: Create a Web Service for StoreFrontService....................................................... 5-3 5.4 Wiring the OrderProcessor BPEL Process to the StoreFrontService Service...................... 5-5 5.5 Creating the gOrderInfoVariable Variable ............................................................................. 5-6 5.6 Creating the Scope_RetrieveOrder Scope ............................................................................... 5-8 5.6.1 Task 1: Add the Scope_RetrieveOrder Scope .................................................................. 5-9 5.6.2 Task 2: Create findOrderById Bind Entity Activity ......................................................