230
Oracle SOA Suite 11g : Essential Concepts Volume II - Stud ent Guid e D58786GC10 Edition 1.0 September 2010 D61581

SOA Suite 11g Essential Concepts - Volume 2

Embed Size (px)

Citation preview

Page 1: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 1/230

Oracle SOA Suite 11 g : EssentialConcepts

Volume II - Student Guide

D58786GC10

Edition 1.0

September 2010

D61581

Page 2: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 2/230

Copyright © 2009, 2010, Oracle and/or its affiliates. All rights reserved.

Disclaimer

This document contains proprietary information and is protected by copyright andother intellectual property laws. You may copy and print this document solely for yourown use in an Oracle training course. The document may not be modified or altered inany way. Except where your use constitutes "fair use" under copyright law, you maynot use, share, download, upload, copy, print, display, perform, reproduce, publish,license, post, transmit, or distribute this document in whole or in part without the

express authorization of Oracle.

The information contained in this document is subject to change without notice. If youfind any problems in the document, please report them in writing to: Oracle University,500 Oracle Parkway, Redwood Shores, California 94065 USA. This document is notwarranted to be error-free.

Restricted Rights Notice

If this documentation is delivered to the United States Government or anyone usingthe documentation on behalf of the United States Government, the following notice isapplicable:

U.S. GOVERNMENT RIGHTSThe U.S. Government’s rights to use, modify, reproduce, release, perform, display, ordisclose these training materials are restricted by the terms of the applicable Oraclelicense agreement and/or the applicable U.S. Government contract.

Trademark Notice

Oracle and Java are registered trademarks of Oracle Corporation and/or its affiliates.Other names may be trademarks of their respective owners.

Authors

Bijoy Choudhury

Swarnapriya Shridhar

Technical Contributorsand Reviewers

Cathy Lippert

Dave Berry

Holger Dindler Rasmussen

Heidi Buelow

Demed L'Her

Prasen Palvankar

Tom Hardy

David Shaffer

James MillsJai Kasi

Magnus Kling

Mathias Kullberg

Matthew Slingsby

Vasiliy Strelnikov

Vikas Jain

Glenn Stokol

Pete Laseau

Nagavalli Pataballa

William Prewitt

Editors

Vijayalakshmi Narasimhan

Daniel Milne

Arijit Ghosh

Graphic Designers

Rajiv ChandrabhanuSatish Bettegowda

Publishers

Giri Venugopal

Michael Sebastian Almeida

Jobi Varghese

Page 3: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 3/230

iii

Contents

I IntroductionCourse Objectives I-2Course Agenda: Day 1 I-3Course Agenda: Day 2 I-4Course Agenda: Day 3 I-5Summary I-6

1 Service-Oriented Architecture ConceptsCourse Road Map 1-2Objectives 1-3Definition: Service-Oriented Architecture (SOA) 1-4Why SOA? 1-5Enterprise Challenge 1-7Point-to-Point Integration 1-8Enterprise Application Integration 1-9Example of Application-Centric Integration 1-10Integrating Solutions and Benefits with SOA 1-11SOA Further Defined 1-12Moving Toward Service-Centric Integration 1-13SOA: A Paradigm Shift 1-14The Eight-Domain Model Approach for SOA 1-15Quiz 1-17Building an SOA Reference Architecture: From Architecture Drivers to a Roadmap 1-18SOA Reference Architecture 1-19

SOA Reference Architecture: Service Consumers 1-21SOA Reference Architecture: Service Classification 1-22SOA Reference Architecture: Service Providers 1-23Reference Architecture: Example 1-24Standards That Enable SOA 1-25Quiz 1-27Service and Web Service 1-28Types of Service Access and Implementation 1-29Ways to Integrate Services 1-30Designing with an SOA Approach 1-31Creating Service Portfolios 1-32SOA Workflow and Orchestration 1-33

Implementing SOA: General Concepts 1-34Quiz 1-35Define SOA Governance 1-36Identifying the Need of SOA Governance 1-37SOA Governance Framework 1-38Quiz 1-39Course Practice Scenario: Purchase Order Processing 1-40Summary 1-41Practice 1 Overview: Preparing the Business Flow Diagram 1-42

Page 4: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 4/230

iv

2 Implementing SOA with Oracle SOA Suite

Course Roadmap 2-2Objectives 2-3Basic Components of an SOA Infrastructure 2-4Oracle SOA Suite 11g Components 2-5Introduction to Service Infrastructure 2-7Introducing SCA in Oracle SOA Suite 11g 2-8Defining a Composite Application 2-9Introducing Oracle Mediator Component 2-11Describing the Features of Oracle Mediator Component 2-12Introducing Oracle BPEL Process Component 2-13Introducing Business Rules Component 2-14Introducing Human Task Component 2-15Quiz 2-16Introduction to Business Activity Monitoring 2-17Monitoring Services with BPEL and BAM 2-18Oracle Enterprise Manager 2-19Oracle WebLogic Server 10.3 2-21WebLogic Server Domain 2-22WebLogic Server Servers 2-24

Administration Server 2-25Managed Server 2-26WebLogic Server Machines 2-27SOA Development with Oracle JDeveloper 2-28Creating Connections in Oracle JDeveloper 2-29Creating an Application Server Connection in Oracle JDeveloper 2-31Goals of Implementing SOA Application with Oracle SOA Suite 11g 2-33Quiz 2-34Summary 2-36

Practice 2 Overview: Creating Connections in JDeveloper 2-37

3 SOA Governance and ServiceLife-Cycle Management Course Roadmap 3-2Objectives 3-3Define Service Life-Cycle Management 3-4Phases of Service Life Cycle 3-5The Need for Service Life-Cycle Management 3-6Define SOA Governance 3-7Relationship of Governance Disciplines 3-8The Need for SOA Governance 3-9Benefits of SOA Governance 3-10

Center of Excellence: Key to SOA Success 3-11Example of Governance Organizational Structure 3-12Quiz 3-13Service Life-Cycle Governance 3-14Service Management 3-16Service Portfolio 3-17Policy Manager 3-18Service Routing 3-19Service Versioning 3-20

Page 5: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 5/230

v

SLA Management 3-21Quiz 3-22Constituents of SOA Governance Model 3-23End-to-End SOA Governance 3-25End-to-End SOA Governance: SOA Asset Management 3-26End-to-End SOA Governance: Policy Management and Enforcement 3-27End-to-End SOA Governance: Consumer Management 3-28End-to-End SOA Governance: SOA Monitoring and Management 3-29SOA Governance Solution 3-30Oracle SOA Governance Solution 3-31Quiz 3-32Summary 3-33Practice 3 Overview: Defining Policies for a Group of Services 3-34

4 Designing Services for SOA ImplementationsCourse Roadmap 4-2Objectives 4-3Defining Services 4-4Services Are SOA Building Blocks 4-5Service Contract 4-6Service Design 4-8Service Granularity 4-9Service Design Principles 4-10Designing Coarse-Grained Interfaces 4-12Quiz 4-13Service Classifications 4-14Connectivity Services 4-15Data Services 4-16Business Services 4-17Business Process Services 4-18

Presentation Services 4-19Service Infrastructure 4-20Quiz 4-21Basic Service Interaction Patterns 4-22Synchronous Interactions 4-23

Asynchronous Interactions 4-24Choosing Service Implementation Styles 4-25Fundamentals for Creating a Service 4-27Building a Portfolio of Services 4-28Describing a Web Service 4-29Web Service Standards 4-30Web Service Architecture 4-31

Service Artifacts 4-33XML Schema Definitions 4-34Defining Messages in XML Schemas 4-35Web Services Description Language 4-36WSDL Model 4-37Defining Service Interfaces in WSDL 4-38Quiz 4-39

Adapter Services 4-40Describing Technology Adapters 4-41

Page 6: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 6/230

vi

Packaged Application and Legacy Adapters 4-42Quiz 4-43Summary 4-44Practice 4: Overview Designing Services for SOA Implementations 4-45

5 Creating a Composite ApplicationCourse Roadmap 5-2Objectives 5-3Service Component Architecture 5-4Components and Composites 5-6SCA Components 5-7SCA Composite 5-8SCA Bindings 5-9SCA Policy Framework 5-10Quiz 5-11Service Data Objects (SDO) 5-12SDO Data Architecture 5-13SCA and SDO 5-14Creating an SOA Composite in JDeveloper 11g 5-15Describing the SOA Composite Editor 5-16Creating Exposed Services 5-18Creating SOA Components 5-19Examining the SCA Descriptor 5-20Quiz 5-21

Adding a Mediator Component 5-22 Adding a BPEL Process Component 5-23Comparing BPEL and Mediator 5-24Examining the JDeveloper Workspace, Projects, and File Structure 5-25Editing a Component in a Composite 5-26Creating External References 5-27

Creating Wires 5-28Creating Wires Modifies Connected Elements 5-29Exposing Components as an External Service 5-30Quiz 5-31Deploying an SOA Composite Application 5-32Summary 5-33Practice 5: Overview Creating an SOA Composite Application 5-34

6 Managing and Monitoring SOA Composite ApplicationsCourse Roadmap 6-2Objectives 6-3Overview of Managing SOA Applications 6-4

Managing with Oracle Enterprise Manager 6-5Oracle Enterprise Manager Fusion Middleware Control 6-6

Accessing the SOA Infrastructure Home Page 6-7 Accessing a Composite Application Home Page 6-8Example Composite Application Home Page 6-9Deploying a Composite Application 6-10Deploying SOA Composite Applications 6-11Initiating an SOA Composite Application Test Instance 6-12Tracking Message Flow 6-13

Page 7: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 7/230

vii

Working with the Flow Trace 6-14Working with the Component Audit Trail Page 6-15Quiz 6-16Managing the State of Deployed SOA Composite Applications 6-17Monitoring and Deleting Specific SOA Composite Application Instances 6-18Recovering from SOA Composite Application Faults 6-19Undeploying a Composite Application 6-21Quiz 6-22Summary 6-23Practice 6: Overview Managing and Monitoring Composite Applications 6-24

7 Working with Mediator ComponentsCourse Roadmap 7-2Objectives 7-3Introducing Oracle Mediator 7-4Oracle Enterprise Service Bus and Mediator 7-5Oracle Mediator Features 7-6Event Delivery Network 7-7Introducing Business Events 7-8Event Handling 7-10Content-Based and Header-Based Routing 7-11Synchronous/Asynchronous Interactions 7-12Service Virtualization 7-13Validations 7-14Error Handling 7-15Transformations 7-16Quiz 7-17Creating an Oracle Mediator Component 7-18Mediator Component Creation Options 7-19Define Interface Later 7-20

Viewing the Mediator Source Code 7-22Modifying a Mediator Component 7-23Deleting a Mediator Component 7-24Specifying Mediator Component Routing Rules 7-25Introducing Routing Rules 7-26

Accessing Mediator Routing Rules 7-28Defining Mediator Routing Rules 7-29Specifying a Target Service: Example 7-31

Adding a Transformation to a Mediator Component 7-32Filtering Messages 7-33Specifying Sequential or Parallel Execution 7-35Quiz 7-36

When to Use Business Events? When to Invoke a Service? 7-37Summary 7-38Practice 7: Overview Creating a Mediator Service Component 7-39

Page 8: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 8/230

viii

8 Orchestrating Services with a BPEL ComponentCourse Roadmap 8-2Objectives 8-3Process Orchestration Concepts 8-4Introducing Business Process Execution Language (BPEL) 8-5Creating a BPEL Process 8-7Oracle BPEL Process Designer 8-8Designing the BPEL Process 8-9Quiz 8-10Developing a BPEL Process 8-11BPEL Activity Types 8-12Grouping Activities by Using a BPEL Scope 8-14

Adding Activities to a Scope 8-15Communicating Data with a BPEL Process 8-16BPEL Variables 8-17Choosing Global or Local Variables 8-19The Assign Activity 8-21Creating Assign Operations 8-22Copying Data from Source to Target 8-23Using the XPath Expression Builder 8-24Quiz 8-25Partner Links and Service Invocation 8-26Partner Links, Partner Link Types, and Roles 8-27Synchronous Services 8-28Synchronous Process Structure: HelloWorld Example 8-29

Asynchronous Service 8-30 Asynchronous BPEL Process Structure 8-31Creating a Partner Link 8-32Configuring a Partner Link 8-33Invoking a Synchronous Service 8-34

Conditionally Branching with a Switch Activity 8-35 Adding a Switch Activity 8-36Configuring Branches of a Switch Activity 8-37Summary 8-38Practice 8: Overview Creating a BPEL Service Component 8-39

9 Working with the Human Task ComponentCourse Roadmap 9-2Objectives 9-3What Is a Human Task? 9-4Human Workflow Diagram 9-5Introduction to Human Workflow Concepts 9-7

Implementing Human Workflow Services 9-8Exploring Workflow Exchange Patterns 9-9Describing a Workflow as a Service 9-10Quiz 9-11

Adding a Human Task Component to an SOA Composite 9-12The Human Task Editor 9-13Working with Human Workflow in BPEL 9-14Creating a Human Task in BPEL 9-15Configuring the Human Task 9-16

Page 9: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 9/230

ix

Adding Task Parameters 9-17Setting the Task Parameter Values 9-18Generating a Task Form for the Worklist 9-19

Accessing the Worklist Application 9-20Viewing Task Information 9-21Managing Task Assignments 9-22Summary 9-23Practice 9: Overview Creating a Human Task to Approve Orders 9-24

10 Implementing a Business Rules ComponentCourse Roadmap 10-2Objectives 10-3Introducing Business Rules Technology 10-4Declarative Rule Concepts 10-5Rule Inference Concepts 10-6Reasons for Using Rules Technology 10-7Guidelines for Selecting Rules Use Cases 10-8Introducing Oracle Business Rules 10-9Introducing Oracle Business Rules Concepts 10-11Developing a Rule-Enabled Application 10-12Defining Oracle Business Rules Development Concepts 10-13Quiz 10-14Creating a Dictionary for Rule Definitions 10-15Working with the Rules Editor in JDeveloper 10-16Creating XMLFact Entries 10-18Working with Bucketsets 10-19Creating a Bucketset 10-20Creating Oracle Business Rules Globals 10-21Creating a Ruleset 10-22Identifying the Structure of a Rule 10-23

Creating a Rule 10-24Creating a Rule Test 10-25Creating a Rule Action 10-26Working with Decision Tables 10-27Creating Conditions and Rules in Decision Tables 10-29Creating Actions in Decision Tables 10-31Working with Decision Functions 10-33Integrating Rules with a BPEL Process 10-34

Adding a Business Rule Activity 10-35Summary 10-38Practice 10: Overview Implementing a Business Rule 10-39

11 Securing Services and Composite ApplicationsCourse Roadmap 11-2Objectives 11-3Introduction to Web Services Security 11-4Need for Web Services Security 11-5Web Services Security Approaches 11-6WS-Security 11-8WS-Security Fundamentals 11-9Quiz 11-11

Page 10: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 10/230

x

Oracle Web Service Manager 11-12Components of Oracle Web Services Manager Architecture 11-13Oracle Web Services Manager Policy Framework 11-14Introduction to Policies 11-15Policy Interceptor Pipeline 11-16Policy Assertions 11-17Quiz 11-18Managing SOA Composite Application Policies 11-19

Attaching Security Policy to a Service 11-20Quiz 11-21Summary 11-22Practice 11 Overview: Attaching Policies to Web Services 11-23

Appendix A: Practices and Solutions

Appendix B: Introduction to LinuxWhat Is Linux? B-2What Is Oracle’s Strategy for Linux? B-3File System and Basic Directory Structure B-4Shell Commands B-6Environment-Based Commands B-7Information-Based Commands B-9File System Commands B-11Common vi Editing Commands B-13Common FTP Communication Commands B-15

Archive Utilities B-17Shortcuts and Tips B-19

Appendix C: Perform Common Tasks with Oracle JDeveloperObjectives C-2

Create a Database Connection C-3Create an Application Server Connection C-4Create an Application C-6Create an Empty Project C-8Create an SOA Project C-9Create a Project from Existing Sources C-10Deploy an SOA Composite Application C-13Summary C-15

Appendix D: SOA Adoption Planning PrinciplesObjectives D-2SOA Adoption D-3

SOA Adoption Planning Activities D-4SOA Adoption Planning Activities: Completing the Stakeholder Community D-5SOA Adoption Planning Activities: Moving Through the Change Curve D-6SOA Adoption Planning Activities: Establishing "Line-of-Sight" Goals D-7SOA Adoption Planning Activities: Establish a Milestone Delivery Plan D-8SOA Adoption Planning Activities: Usage of Metrics D-9SOA Adoption Planning Activities: Enabling Business Innovation D-10SOA Adoption Planning Activities: Usage of Tools and Processes D-11The Need for an SOA Reference Architecture D-12

Page 11: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 11/230

xi

Developing the SOA Reference Architecture D-13Developing the SOA Reference Architecture: Align IT with Business D-14Developing the SOA Reference Architecture: Develop a Baseline D-15Developing the SOA Reference Architecture: Create SOA Reference Architecture D-16Developing the SOA Reference Architecture: Create SOA Infrastructure Roadmap D-17SOA Governance Model D-18Example of an SOA Governance Model D-19Summary D-20

Glossary

Page 12: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 12/230

Page 13: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 13/230

Appendix APractices and Solutions

Page 14: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 14/230

Oracle SOA Suite 11g: Essent ial Concepts A - 2

Table of Contents

Practices Overview ............................................................................................................. 3Practices for Lesson 1 ......................................................................................................... 4

Practice 1-1: Specifying Tasks in Workflow for a Purchase Order Processing Business

Scenario........................................................................................................................... 5Practices for Lesson 2 ......................................................................................................... 8Practice 2-1: Creating a JDeveloper Connection to the Application Server ................... 9Practice 2-2: Browsing an SOA Composite in Oracle JDeveloper 11g ........................ 13

Practices for Lesson 3 ....................................................................................................... 17Practice 3-1: Paper-Based Questions ............................................................................ 18

Practices for Lesson 4 ....................................................................................................... 21Practice 4-1: Modifying an XSD Document ................................................................. 22Practice 4-2: Modifying a WSDL Document ............................................................... 26

Practices for Lesson 5 ....................................................................................................... 35Practice 5-1: Deploying a Prebuilt SOA Composite by Using Oracle JDeveloper 11g 36

Practice 5-2: Creating an SOA Composite Application Workspace ............................ 38Practice 5-3: Adding a Service Interface to the SOA Composite ................................. 43Practice 5-4: Adding an External Reference to the SOA Composite ........................... 48

Practices for Lesson 6 ....................................................................................................... 51Practice 6-1: Testing an SOA Composite by Using Oracle Enterprise Manager FusionMiddleware Control ...................................................................................................... 52Practice 6-2: Viewing the SOA Composite Instance Details ........................................ 56

Practices for Lesson 7 ....................................................................................................... 59Practice 7-1: Creating a Mediator to Route Order Request .......................................... 60Practice 7-2: Adding Routing Rules to the SOA Composite ........................................ 67Practice 7-3: Deploying and Testing the SOA Composite ........................................... 71

Practices for Lesson 8 ....................................................................................................... 76Practice 8-1: Creating an Order Approval BPEL Process ............................................ 78Practice 8-2: Modifying the Mediator in the SOA Composite ..................................... 93Practice 8-3: Deploying and Testing the SOA Composite ........................................... 99

Practices for Lesson 9 ..................................................................................................... 103Practice 9-1: Creating a Human Task for Manual Order Approval ............................ 105Practice 9-2: Accessing the Human Task from the BPEL Process ............................. 111Practice 9-3: Deploying and Testing the SOA Composite ......................................... 120

Practices for Lesson 10 ................................................................................................... 126Practice 10-1: Adding a Business Rule to POProcessingComposite .......................... 128Practice 10-2: Accessing the Business Rule from the BPEL Process ........................ 134

Practice 10-3: Deploying and Testing the SOA Composite ....................................... 144Practices for Lesson 11 ................................................................................................... 146Practice 11-1: Attach username_token_security_policy to the receivePO ServiceEndpoint ...................................................................................................................... 147Practice 11-2: Attach log_policy to the receivePO Service Endpoint ........................ 152

Page 15: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 15/230

Page 16: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 16/230

Oracle SOA Suite 11g: Essent ial Concepts A - 4

Practices for Lesson 1

The goal of the practices in this lesson is to investigate and identify the various business processes that you can define and associate with the purchase order processingapplication. Deduce a workflow diagram by segregating different task and business

processes in a sequential flow for the purchase order processing business processscenario.

In this practice, you specify the missing links in the given processes workflow diagramfor the purchase order processing business process scenario.

Page 17: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 17/230

Oracle SOA Suite 11g: Essent ial Concepts A - 5

Practice 1-1: Specifying Tasks in Workflow for a Purchase OrderProcessing Business ScenarioIn this practice, you specify the missing links in the purchase order processing business

process workflow diagram.

The POProcessingComposite SOA composite is described in the following sequence ofsteps.

1. Details of the purchase order are received.2. Small order quantities (quantity less than 10 units) are approved automatically.3. Large order quantities (quantities greater than or equal to 10 units) pass through a

validation and approval process (where the customer’s credit card status isvalidated).

4. If the credit card status is invalid, the order is rejected and the status informationis written to a text file.

5. If the credit card status is valid, the total order amount is evaluated.

6.

If the total order amount is less than $5000, the order is auto-approved and theorder details are written to the text file.7. If the order amount is greater than or equal to $5000, the order passes through a

manual approval process.8. If the status of the manual approval is “approved,” the order details are written to

a text file with the status approved.9. If the status of the manual approval is “rejected,” the status detail (rejected) is

written to the text file.

Based on the application description, fill in the missing business process links (annotatedwith question marks) in the following business process flow diagram.

Page 18: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 18/230

Practice 1-1: Specifying Tasks in Workflow for a Purchase OrderProcessing Business Scenario (continued)

Oracle SOA Suite 11g: Essential Concepts A - 6

?Status=invalidCreditCard

?

Status=approved

Rejected Status=rejected

Status=approved

Status = ?

>= 5000

NewOrder

invalid

TextFile

?

GetAmount

Approved Approval

?

>= 10

?

Amount

Status

?

Page 19: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 19/230

Page 20: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 20/230

Oracle SOA Suite 11g: Essent ial Concepts A - 8

Practices for Lesson 2

The goal of the practices for this lesson is to set up the practice developmentenvironment. In this practice, you start Oracle JDeveloper 11 g in the Windowsenvironment and configure appropriate connections to Oracle WebLogic Server.

In this practice set, you perform the following key tasks:

1. Create an application server connection in JDeveloper to WebLogic Server.

2. Browse an existing SOA composite application in JDeveloper.

Page 21: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 21/230

Oracle SOA Suite 11g: Essent ial Concepts A - 9

Practice 2-1: Creating a JDeveloper Connection to the Application ServerIn this practice, you create an Application Server connection for your SOA Server toenable you to deploy SOA Composite application projects and other services. Tocomplete this task, perform the following steps:

1) Start the WebLogic Administration server by double-clicking the Start WebLogicAdmin Server icon on the desktop and wait until the server is started. You can verifythis when you see the text similar to the following display in the terminal window:

<J un 16, 2009 12: 59: 43 AM EDT> <Not i ce> <WebLogi cSer ver > <BEA-000360> <Ser ver st ar t ed i n RUNNI NG mode>

2) Start the SOA Server (managed server), by double-clicking the Start SOA Server iconon the desktop, wait until the server is started. You can verify this when you see thetext similar to the following display in the terminal window:

I NFO: Fabr i cPr ovi der Ser vl et . st at eChanged SOA Pl at f or m i sr unni ng and accept i ng r equest s

3) On the Desktop, double-click the JDeveloper 11 g desktop icon to start JDeveloper.

4) On the Migrate User Settings window, click No.

5) On the JDeveloper window, click the View > Resource Palette menu.

6) On the JDeveloper Resource Palette window, click the New (icon) > New Connection> Application Server

7) On the Create Application Server Connection wizard pages, enter the informationspecified in the following table:

Step Screen/Page Description Choices or Valuesa. Create Application Server On the Name and Type page enter:

Page 22: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 22/230

Practice 2-1: Creating a JDeveloper Connection to the Application Server (continued)

Oracle SOA Suite 11g: Essent ial Concepts A - 10

Step Screen/Page Description Choices or ValuesConnection – Step 1 of 5 Connection Name:

MyAppl i cat i onSer ver Connect i on Accept default for other items, and click Next

b. Create Application ServerConnection – Step 2 of 5

On the Authentication page enter:Username: weblogicPassword: welcome1Click Next

c. Create Application ServerConnection – Step 3 of 5

On the Configuration page enter:WLS Domain: soa_domainAccept defaults for remaining fields, and click

Next.d. Create Application Server

Connection – Step 4 of 5On the Test page:Click Test Connection and ensure you have asuccess for all eight tests, click Finish.

Note: Use the following screenshots if required as a guide supporting steps describedin the preceding table of instructions:

a)

Page 23: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 23/230

Practice 2-1: Creating a JDeveloper Connection to the Application Server (continued)

Oracle SOA Suite 11g: Essent ial Concepts A - 11

b) Username: webl ogi c Password: wel come1

c)

Page 24: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 24/230

Practice 2-1: Creating a JDeveloper Connection to the Application Server (continued)

Oracle SOA Suite 11g: Essent ial Concepts A - 12

d)

Page 25: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 25/230

Oracle SOA Suite 11g: Essent ial Concepts A - 13

Practice 2-2: Browsing an SOA Composite in Oracle JDeveloper11gIn this practice, you open an existing SOA composite application in JDeveloper andidentify the various service components. In order to open an existing application inJDeveloper, execute the following steps:

1) In the Application Navigator pane, click Open Application (or you can select File >Open).

2) Navigate to the D: \ l abs\ Appl i cat i on_02\ Cr edi t Car dVal i dat i on directory,and open the Cr edi t Car dVal i dat i on. j ws file.

Page 26: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 26/230

Practice 2-2: Browsing an SOA Composite in Oracle JDeveloper11g (cont inued)

Oracle SOA Suite 11g: Essent ial Concepts A - 14

3) In the Open Warning window, click Yes.

4) You see the application files and artifacts in the Application Navigator pane. Double-click composi t e. xml in the Application Navigator pane to open the SOAComposite editor.

5) View the SOA composite service component (a single BPEL process) and theexposed service in the SOA Composite editor. Also view the SOA servicecomponents and service adapters in the Component palette.

Page 27: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 27/230

Practice 2-2: Browsing an SOA Composite in Oracle JDeveloper11g (cont inued)

Oracle SOA Suite 11g: Essent ial Concepts A - 15

Optionally, double-click the CreditCardValidationProcess BPEL process to open theBPEL designer and view the BPEL activities.

6) Close the Cr edi t Car dVal i dat i on workspace and remove it from the JDeveloperIDE.

a) From the Application menu, select Close Application.

Page 28: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 28/230

Practice 2-2: Browsing an SOA Composite in Oracle JDeveloper11g (cont inued)

Oracle SOA Suite 11g: Essent ial Concepts A - 16

b) In the Confirm Close Application dialog box, select the “Close application andremove it from IDE” option and click OK.

Page 29: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 29/230

Oracle SOA Suite 11g: Essent ial Concepts A - 17

Practices for Lesson 3

In this practice, you work on a set of paper-based questions that covers service life-cyclemanagement and SOA governance.

Page 30: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 30/230

Oracle SOA Suite 11g: Essent ial Concepts A - 18

Practice 3-1: Paper-Based Questions

Select the most appropriate option or options for the following questions:

1. Service life-cycle management ensures:

a.

Service reusability and versioning b. Quality, performance, and proper usage of servicesc. Service visibilityd. Web service development

2. What is the need for service life-cycle management?a. Ensures flexible categorization of services

b. Enables reporting on key metricsc. Ensures proper use of servicesd. Enables automated capture of business processes and services

3.

Which two governance disciplines is SOA governance an extension of?a. IT governance b. EA governancec. Corporate governanced. Service governance

4. SOA governance is needed because it:a. Ensures that project investments yield business value

b. Controls dependencies, manages the impact of change, and enforces policies

c. Promotes consolidation, standardization, and reuse thus enabling costsaving

d. All of the above

5. Identify the characteristics of service managementa. Centralized configuration and monitoring

b. Policy-based routing and securityc. Service registration, versioning, and discoveryd. Build and compose service

6. Service directory can be defined as the place where:a. Services are registered

b. Services are routedc. Orchestration of service takes place

7. Service policy specifies:a. Authentication

b. Authorizationc. Encryptiond. Message-level security

Page 31: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 31/230

Practice 3-1: Paper-Based Questions (continued)

Oracle SOA Suite 11g: Essent ial Concepts A - 19

8. Identify two constituents of the SOA governance model.a. SOA portfolio governance

b. Release managementc. Service life-cycle governanced. SOA versioning

9. Which of the following ensures policy compliance throughout the service lifecycle?

a. SOA asset management b. Policy management and enforcementc. Consumer managementd. SOA monitoring and management

10. Which of the following provides a structured contract between the provider andthe consumer?

a. SOA asset management b. Policy management and enforcementc. Consumer managementd. SOA monitoring and management

11. Which of the following manages the SOA assets and associated metadata?a. SOA asset management

b. Policy management and enforcementc. Consumer managementd. SOA monitoring and management

12. Which of the following tracks enforcement of service contract and quality ofservice?

a. SOA asset management b. Policy management and enforcementc. Consumer managementd. SOA monitoring and management

Page 32: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 32/230

Practice 3-1: Paper-Based Questions (continued)

Oracle SOA Suite 11g: Essent ial Concepts A - 20

Solutions to Practice 3-1 (Paper-Based Questions)

1 - a, b, and c

2 - a, b, and d

3 - a, b

4 - d

5 - a, b, and c

6 - a

7 - a, b, c, and d

8 - a, c

9 - b

10 - c

11 - a

12 - d

Page 33: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 33/230

Oracle SOA Suite 11g: Essent ial Concepts A - 21

Practices for Lesson 4

Services are the basic building blocks for an SOA implementation. The service interfaceis defined and described by using Web Service Definition Language (WSDL). Themessage structures for communicating the required data between a service client andservice operation are defined and based on the types expressed in an XML schemadocument (XSD).

The goal of the practices in this lesson is to modify an XSD and a WSDL document byusing Oracle JDeveloper 11 g IDE.

Your tasks in this practice set are as follows: 1. Modify a schema document by using the XSD editor in JDeveloper.2. Modify a WSDL document by using the WSDL editor in JDeveloper.

Page 34: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 34/230

Page 35: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 35/230

Practice 4-1: Modifying an XSD Document (continued)

Oracle SOA Suite 11g: Essent ial Concepts A - 23

d) Click and drag a sequence component from the Component palette to the outputcomplex type in the XSD Visual editor pane.

e) Click and drag an element component from the Component palette, and add it tothe sequence.

Page 36: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 36/230

Practice 4-1: Modifying an XSD Document (continued)

Oracle SOA Suite 11g: Essent ial Concepts A - 24

f) Right-click the element component in the XSD Visual editor pane and select “Goto Properties” from the shortcut menu.

g) In the Property Inspector pane, enter the following values for the respective fields:

name: ar gs0

type: xsd: st r i ng

Press Enter to accept the values.

Page 37: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 37/230

Practice 4-1: Modifying an XSD Document (continued)

Oracle SOA Suite 11g: Essent ial Concepts A - 25

4) Save the r esponse. xsd schema.

5) Validate the XSD schema.

a) In the Application Navigator pane, right-click r esponse. xsd and select theValidate XML option from the shortcut menu.

b)

In the Messages-Log pane, verify that the schema has neither errors nor warnings.

Page 38: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 38/230

Oracle SOA Suite 11g: Essent ial Concepts A - 26

Practice 4-2: Modifying a WSDL DocumentIn this practice, you modify a WSDL document by using Oracle JDeveloper 11 g .

1) Double-click WSDLDocument . wsdl to open it in the WSDL editor pane.

2) Modify and add the following components in the WSDL document.

a) Add an XSD schema:

i) In the WSDL editor pane, click the Schema tab (which is at the bottom of the pane).

ii) Select Schema Components in the Component palette drop-down list.

iii) Click and drag an import component from the Component palette to the<schema> node in the WSDL editor pane.

iv) Select the import component, and in the Property Inspector pane, enter the

following values for the respective fields:schemaLocation: r esponse. xsd

namespace: ht t p: / / www. exampl e. or g

Press Enter to accept the values.

Page 39: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 39/230

Practice 4-2: Modifying a WSDL Document (con tinued)

Oracle SOA Suite 11g: Essent ial Concepts A - 27

b) Add a message:

i) In the WSDL editor pane, click the Design tab (which is at the bottom of the pane).

ii) Click the small [+] icon ( ) on the Messages box to expand it in the WSDLeditor pane.

Page 40: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 40/230

Page 41: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 41/230

Practice 4-2: Modifying a WSDL Document (con tinued)

Oracle SOA Suite 11g: Essent ial Concepts A - 29

viii) Verify that the message node looks like the following screenshot:

c) Add an operation:i) In the Port Types box of the WSDL editor pane, click and drag an operation

component from the Component palette to theVal i dat eCr edi t Car dSer vi ce node.

ii) In the Create Operation dialog box, enter the following values and click OK:

Operation Name: Val i dat eCr edi t Car d

Operation Type: Request Response

Input: ns:messageInputOutput: ns:messageOutput

Page 42: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 42/230

Practice 4-2: Modifying a WSDL Document (con tinued)

Oracle SOA Suite 11g: Essent ial Concepts A - 30

iii) Expand the Val i dat eCr edi t Car d node and its subsequent nodes to viewthe structure.

d) Add a binding:

i) Click the icon on the Bindings/Partner Links Types box of the WSDLeditor pane.

ii) In the Create Binding dialog box, deselect the SOAP11 option and select theSOAP12 option.

Page 43: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 43/230

Practice 4-2: Modifying a WSDL Document (con tinued)

Oracle SOA Suite 11g: Essent ial Concepts A - 31

iii) In the SOAP12 section, specify the following values for the respective fieldsand click OK.

Binding Name: Val i dat eCr edi t Car dSer vi ceSOAP12Bi ndi ng

Message Encoding: Document/Literal

iv) Expand the Val i dat eCr edi t Car dSer vi ceSOAP12Bi ndi ng node and itssubsequent nodes to view the structure.

e) Add a service:

i) Click the icon on the Services box of the WSDL editor pane.

Page 44: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 44/230

Practice 4-2: Modifying a WSDL Document (con tinued)

Oracle SOA Suite 11g: Essent ial Concepts A - 32

ii) In the Create Service dialog box, enter the service name asVal i dat eCr edi t Car dSer vi ce and click OK.

iii) Click and drag a port component from the Component palette to theVal i dat eCr edi t Car dSer vi ce node.

iv) In the New Port dialog box, specify the following values for the respectivefields and click OK.

Port Name: Val i dat eCr edi t Car dSer vi ceSoap12Ht t pPor t

Binding Name: ns: Val i dat eCr edi t Car dSer vi ceSOAP12Bi ndi ng

Page 45: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 45/230

Page 46: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 46/230

Practice 4-2: Modifying a WSDL Document (con tinued)

Oracle SOA Suite 11g: Essent ial Concepts A - 34

b) In the Messages – Log pane, verify that the WSDL document has neither errorsnor warnings.

5) Close the Appl i cat i on_04 workspace and remove it from the JDeveloper IDE.

a) From the Application menu, select Close Application.

b) In the Confirm Close Application dialog box, select the first option (Closeapplication and remove it from IDE) and click OK.

Page 47: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 47/230

Oracle SOA Suite 11g: Essent ial Concepts A - 35

Practices for Lesson 5

The goal of the practices in this lesson is to create the basic infrastructure on which youstart the development of the POProcessingComposite SOA composite application. Youuse the Oracle JDeveloper 11 g integrated development environment (IDE) to develop theSOA composite.

In this practice set, you perform the following tasks (annotated in the followingscreenshot):

1. Deploy a prebuilt SOA composite to Oracle SOA Suite 11 g .2. Create an SOA composite application workspace.3. Add a service interface to the SOA composite.4. Add an external reference to the SOA composite.

Page 48: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 48/230

Oracle SOA Suite 11g: Essent ial Concepts A - 36

Practice 5-1: Deploying a Prebuil t SOA Composite by UsingOracle JDeveloper 11gIn this practice, you deploy the prebuilt CreditCardValidation (ValidationForCC) SOAComposite application to the Oracle SOA Suite 11 g by using Oracle JDeveloper 11 g .CreditCardValidation is a simple SOA composite application that contains a single

synchronous BPEL process service component. The BPEL process verifies the credit cardnumber that is sent as an input to the BPEL process by the exposed service interface.After performing the verification, the BPEL process responds with appropriate messages.

1) Open the Cr edi t Car dVal i dat i on. j ws workspace in JDeveloper.

a) From the File menu, select Open.

b) In the Open dialog box, navigate to theD: \ l abs\ Appl i cat i on_02\ Cr edi t Car dVal i dat i on directory. SelectCr edi t Car dVal i dat i on. j ws and click the Open button.

2) Deploy the CreditCardValidation SOA composite to Oracle SOA Suite 11 g .

Caution: You might encounter a deployment error (such as, HTTP er r or coder et ur ned [ 403] ) while deploying applications from JDeveloper. In such case,disable the Proxy settings in JDeveloper, and restart JDeveloper. To disable the Proxysettings, navigate to Tools > Preferences > Web Browser and Proxy, and deselect the“Use HTTP Proxy Server” option. Restart JDeveloper after making the changes.

a) In the Application Navigator menu of JDeveloper, right-click ValidationForCC(the SOA composite project) and select Deploy > ValidationForCC > to >MyApplicationServerConnection.

b) In the SOA Deployment Configuration dialog box, verify that the SOA server isselected ( soa_ser ver 1 ). Accept the default composite revision ID and click OK.

Page 49: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 49/230

Practice 5-1: Deploy ing a Prebuil t SOA Composite by UsingOracle JDeveloper 11g (continued)

Oracle SOA Suite 11g: Essent ial Concepts A - 37

c) In the Authorization Request dialog box, enter webl ogi c in the Username fieldand wel come1 in the Password field. Click OK.

d) View the Deployment – Log pane to verify that the deployment is successful.

3) Close the Appl i cat i on_02 workspace and remove it from the JDeveloper IDE.

a) From the Application menu, select Close Application.

b) In the Confirm Close Application dialog box, select the first option (Closeapplication and remove it from IDE) and click OK.

Page 50: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 50/230

Oracle SOA Suite 11g: Essent ial Concepts A - 38

Practice 5-2: Creating an SOA Composite ApplicationWorkspaceIn this practice, you create an application workspace and an SOA project by using OracleJDeveloper 11 g .

4) Create a new application workspace.

a) From the File menu, select New.

b) In the New Gallery dialog box, select Applications in the Categories pane and

Generic Application in the Items pane. Click OK.

c) In the Create Generic Application dialog box, enter the following information andclick Finish.

Application Name: Appl i cat i on_05

Directory: D: \ l abs\ Appl i cat i on_05

Page 51: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 51/230

Practice 5-2: Creating an SOA Composite ApplicationWorkspace (cont inued)

Oracle SOA Suite 11g: Essent ial Concepts A - 39

d) You see a default project in the Applications Navigator pane. Delete the default project by executing the following steps:

i) Right-click the project and select Delete Project from the shortcut menu.

ii) In the Confirm Delete Project dialog box, select the “Remove project anddelete all of its contents (including secure directories)” option (you can press“d” to select this option), and then click Yes.

iii) Click Yes in the Confirm Project Contents Delete dialog box.

Page 52: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 52/230

Practice 5-2: Creating an SOA Composite ApplicationWorkspace (cont inued)

Oracle SOA Suite 11g: Essent ial Concepts A - 40

5) Create an SOA project.

a) From the Application menu, select New Project.

b) In the New Gallery dialog box, select SOA Project in the Items pane. Click OK.

c) In the “Create SOA Project – Step 1 of 2” dialog box, enter the followinginformation and click Next.

Project Name: POPr oces si ngComposi t e

Directory: D: \ l abs\ Appl i cat i on_05\ POPr oces si ngComposi t e

Page 53: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 53/230

Practice 5-2: Creating an SOA Composite ApplicationWorkspace (cont inued)

Oracle SOA Suite 11g: Essent ial Concepts A - 41

Also verify that SOA is added to the Selected list box.

d) In the “Create SOA Project – Step 2 of 2” dialog box, select the Empty Compositeoption in the Composite Template list box and click Finish.

Page 54: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 54/230

Practice 5-2: Creating an SOA Composite ApplicationWorkspace (cont inued)

Oracle SOA Suite 11g: Essent ial Concepts A - 42

e) The new, empty SOA composite should look like the following screenshot:

Page 55: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 55/230

Oracle SOA Suite 11g: Essent ial Concepts A - 43

Practice 5-3: Adding a Service Interface to the SOA Composi teIn this practice, you add and configure a service interface to the POProcessingCompositeSOA composite. This service interface enables any client application to interact with theSOA composite.

1) Ensure that the SOA option is selected in the Component palette drop-down list.

2) Click and drag a Web Service component from the Component palette to the ExposedServices column in the SOA Composite editor pane.

3) Configure the service interface. Use the following details to accomplish this task:

Step Screen/PageDescription

Choices or Values

a. Create WebService

Name: r ecei vePO Type: ServiceWSDL URL: Click the “Generate WSDL from schema(s)”icon.

b. CreateWSDL

Click the “browse for schema files” icon (next to the URLtext field).

c. Type Chooser Click the Import Schema File icon.

d. ImportSchema File

Click the Browse Resources icon.

e. SOAResourceBrowser

Navigate to and select D: \ l abs\ Appl i cat i on_Fi l es \schemas\ Pur chaseOr der . xsd . Click OK.

f. ImportSchema File

Click OK.

Page 56: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 56/230

Practice 5-3: Adding a Service Interface to the SOA Composi te(continued)

Oracle SOA Suite 11g: Essent ial Concepts A - 44

g. Localize Files Click OK.h. Type Chooser Expand Project Schema Files > PurchaseOrder.xsd, and

select PurchaseOrder.Click OK.

Note: This service is a one-way invocation type, alsoknown as a fire-and-forget service. So there is no need tospecify a reply or callback.

i. CreateWSDL

Click OK.

j. Create WebService

Click OK.

a)

b)

Page 57: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 57/230

Practice 5-3: Adding a Service Interface to the SOA Composi te(continued)

Oracle SOA Suite 11g: Essent ial Concepts A - 45

c)

d)

e)

Page 58: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 58/230

Page 59: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 59/230

Practice 5-3: Adding a Service Interface to the SOA Composi te(continued)

Oracle SOA Suite 11g: Essent ial Concepts A - 47

i)

j)

Page 60: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 60/230

Oracle SOA Suite 11g: Essent ial Concepts A - 48

Practice 5-4: Adding an External Reference to the SOACompositeIn this practice, you add and configure an external Web service reference to the SOAcomposite.

1) Add a Web service reference to the SOA composite.

a) Ensure that the SOA option is selected in the Component palette drop-down list.

b) Click and drag a Web Service component from the Component palette to theExternal References column in the SOA Composite editor pane.

2) Configure the Web service reference. Use the following details to accomplish this

task:Step Screen/Page

DescriptionChoices or Values

a. Create WebService

Name: get Cr edi t Car dSt at us Type: ReferenceWSDL URL: Click the “Find existing WSDLs” icon.

b. SOAResourceBrowser

Select Resource Palette from the list.

c. SOAResourceBrowser

Expand Application Server > MyApplicationServerConnection >SOA > ValidateForCC [1.0], and selectcr edi t car dst at us_ep .Click OK.

d. Create WebService

Click OK.

Page 61: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 61/230

Practice 5-4: Adding an External Reference to the SOAComposite (continued)

Oracle SOA Suite 11g: Essent ial Concepts A - 49

a)

b)

c)

Page 62: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 62/230

Practice 5-4: Adding an External Reference to the SOAComposite (continued)

Oracle SOA Suite 11g: Essent ial Concepts A - 50

d)

3) Close the Appl i cat i on_05. j ws workspace and remove it from the JDeveloperIDE.

Page 63: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 63/230

Page 64: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 64/230

Oracle SOA Suite 11g: Essent ial Concepts A - 52

Practice 6-1: Testing an SOA Composite by Using OracleEnterprise Manager Fusion Middleware ControlIn this practice, you test the CreditCardValidation SOA composite, deployed to theOracle SOA Suite 11 g instance, by using the Oracle Enterprise Manager 11 g FusionMiddleware Control console.

1) Test the CreditCardValidation (ValidationForCC) SOA composite with a set of input parameters.

a) Log in to the Oracle Enterprise Manager 11 g Fusion Middleware Control console.

i ) Open a Web browser (Mozilla Firefox), and enter the following URL in theaddress field:ht t p: / / l ocal host : 7001/ em

ii) You see the login page of the Oracle Enterprise Manager 11 g FusionMiddleware Control console. Enter the following credentials and click Login.

User Name: webl ogi c

Password: wel come1

iii) Click Continue.

Page 65: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 65/230

Practice 6-1: Testing an SOA Composite by Using OracleEnterprise Manager Fusion Middleware Control (cont inued)

Oracle SOA Suite 11g: Essent ial Concepts A - 53

b) Test the CreditCardValidation SOA composite.

i) On the Oracle Enterprise Manager 11 g Fusion Middleware Control page, yousee two vertical panes. In the left pane, you see the domain and under it, a listof folders. Expand the SOA > soa-infra (soa_server1) folder. You seeValidationForCC [1.0].

ii) Click the ValidationForCC [1.0] link to see the application details in the right pane.

Page 66: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 66/230

Practice 6-1: Testing an SOA Composite by Using OracleEnterprise Manager Fusion Middleware Control (cont inued)

Oracle SOA Suite 11g: Essent ial Concepts A - 54

iii) Click the Test button on the ValidationForCC [1.0] page.

iv) On the Test Web Service page, scroll down to the Input Arguments section.Enter the test value in the input parameter as 1234- 1234- 1234- 1234 .

v) Click the Test Web Service button.

Page 67: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 67/230

Page 68: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 68/230

Oracle SOA Suite 11g: Essent ial Concepts A - 56

Practice 6-2: Viewing the SOA Composite Instance DetailsIn this practice, you view the CreditCardValidation SOA composite instance details andthe composite’s flow of message through various composite and component instances.

1) View the CreditCardValidation SOA composite’s instance.

a) Click the ValidationForCC [1.0] link in the left pane of the browser dialog box.

b) Click the Instances tab on the ValidationForCC [1.0] page. You see the SOAcomposite’s instance.

2) View the Flow trace of the SOA composite.

a) Click the Instance ID to see the flow trace of the composite.

b) On the Flow Trace page, under the Trace section, verify that the State columnshows completed for the service, component, and reference.

Page 69: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 69/230

Practice 6-2: Viewing the SOA Composite Instance Details(continued)

Oracle SOA Suite 11g: Essent ial Concepts A - 57

3) View the instance information of the BPEL Process service component.

a) On the Flow Trace page, under the Trace section, click theCreditCardValidationProcess link.

b) On the “Instance of CreditCardValidationProcess” page, you see the audit trail.

c) Click the Flow tab to view the BPEL flow. Click a BPEL activity to view thedetails.

Page 70: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 70/230

Practice 6-2: Viewing the SOA Composite Instance Details(continued)

Oracle SOA Suite 11g: Essent ial Concepts A - 58

Page 71: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 71/230

Oracle SOA Suite 11g: Essent ial Concepts A - 59

Practices for Lesson 7

The goal of the practices in this lesson is to create the r out ePO Mediator servicecomponent. The client that interacts with the SOA composite makes a new purchaseorder request to the POProcessingComposite by using the r ecei vePO Web serviceinterface. The r out ePO Mediator routes the order request to a text file ( or der _n. t xt )

by using the Wr i t eAppr oval Resul t s File adapter.

Often, you have an application or some GUI-based front end to invoke and test a service;however, usually, when you start developing your services, you do not have any clientapplication to test them. The Oracle Enterprise Manager 11 g Fusion Middleware Controlconsole allows you to run your service with any input, so you can test it at any time.

In this practice set, you perform the following tasks:1. Create a Mediator service component to route the purchase order to a text file.2. Add routing rules and map the order request to the text file.3. Deploy and test the SOA composite in Oracle SOA Suite 11 g .

Page 72: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 72/230

Oracle SOA Suite 11g: Essent ial Concepts A - 60

Practice 7-1: Creating a Mediator to Route Order RequestIn this practice, you add a Mediator component in the POProcessingComposite SOAcomposite to accept and route new purchase orders to a disk file.

1) Open the Appl i cat i on_07. j ws workspace in JDeveloper.

a) From the File menu, select Open.

b) In the Open dialog box, navigate to the D: \ l abs\ Appl i cat i on_07 directory.Select Appl i cat i on_07. j ws and click the Open button.

c) In the Application Navigator pane, expand POProcessingComposite > SOAContent and double-click composi t e. xml to open it in the SOA Compositeeditor pane.

2) Add a Mediator component to the POProcessingComposite.

a) Ensure that SOA is selected in the Component palette drop-down list.

b) Click and drag a Mediator component from the Component palette to theComponents column in the SOA Composite editor pane.

c) In the Create Mediator dialog box, specify the following options and click OK.

Name: r out ePO

Template: Define Interface Later

Page 73: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 73/230

Practice 7-1: Creating a Mediator to Route Order Request(continued)

Oracle SOA Suite 11g: Essent ial Concepts A - 61

3) Add a File adapter to the composite to write new purchase order data in a text file.

a) Drag a File Adapter component from the Component palette to the ExternalReferences column in the SOA Composite editor pane.

b) Create a File Adapter called Wr i t eAppr oval Resul t s . Use the following detailsto accomplish this task:

Step Screen/PageDescription

Choices or Values

a. Welcome Click Next. b. Service Name Service Name: Wr i t eAppr oval Resul t s

Click Next.c. Adapter

InterfaceAccept the default option.Click Next.

d. Operation Operation Type: Write FileOperation Name: Wr i t e Click Next.

e. FileConfiguration

Directory for Outgoing Files (physical path):D: \ l abs\ Appl i cat i on_Fi l es\ t est Resul t s File Naming Convention: or der _%SEQ%. t xtClick Next.

Page 74: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 74/230

Page 75: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 75/230

Practice 7-1: Creating a Mediator to Route Order Request(continued)

Oracle SOA Suite 11g: Essent ial Concepts A - 63

c)

d)

e)

Page 76: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 76/230

Practice 7-1: Creating a Mediator to Route Order Request(continued)

Oracle SOA Suite 11g: Essent ial Concepts A - 64

f)

g)

h)

i)

Page 77: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 77/230

Practice 7-1: Creating a Mediator to Route Order Request(continued)

Oracle SOA Suite 11g: Essent ial Concepts A - 65

j)

k)

l)

Page 78: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 78/230

Practice 7-1: Creating a Mediator to Route Order Request(continued)

Oracle SOA Suite 11g: Essent ial Concepts A - 66

m)

4) Wire the components as shown in the following screenshot:

Page 79: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 79/230

Page 80: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 80/230

Practice 7-2: Adding Routing Rules to the SOA Composite(continued)

Oracle SOA Suite 11g: Essent ial Concepts A - 68

d) In the XSLT Mapper pane, drag Purchase Order from the sources side to Order onthe target side. You will be prompted for auto-mapping preferences.

e) In the Auto Map Preferences dialog box, perform the following steps:

i) Deselect the “Match Elements Considering their Ancestor Names” check box

and click Show Dictionaries.

ii) Click the Add button.

Page 81: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 81/230

Practice 7-2: Adding Routing Rules to the SOA Composite(continued)

Oracle SOA Suite 11g: Essent ial Concepts A - 69

iii) Select D: \ l abs\ Appl i cat i on_Fi l es\ di ct i onar y\po_t o_or der _di ct i onar y. xml and click OK.

Note: You use a dictionary created by business analysts that lists commonsynonyms in use across data objects (such as “qty” being used instead of“quantity,” and “custID” instead of “customerID”). The dictionary is notmandatory, and even without it, the auto-mapping feature identifies and enablesmapping of these fields. However, a dictionary, customized to a specific companyhelps improve its accuracy.

f) Verify that the resultant mapping looks like the following screenshot:

Page 82: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 82/230

Practice 7-2: Adding Routing Rules to the SOA Composite(continued)

Oracle SOA Suite 11g: Essent ial Concepts A - 70

g) Save and close both the mapping and the Mediator editor to return to thecomposite.

Page 83: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 83/230

Oracle SOA Suite 11g: Essent ial Concepts A - 71

Practice 7-3: Deploying and Testing the SOA Composi teIn this practice, you deploy the POProcessingComposite SOA Composite application tothe application server. You also test the SOA Composite by using the Oracle EnterpriseManager 11 g Fusion Middleware Control console.

1) Deploy the POProcessingComposite SOA composite to Oracle SOA Suite 11 g .

a) In the Application Navigator of JDeveloper, right-click POProcessingComposite(the SOA project) and select Deploy > POProcessingComposite > to >MyApplicationServerConnection option.

b) In the SOA Deployment Configuration dialog box, click OK.

Note: If you are redeploying your application with the same revision number, youmust select the option to overwrite the previous version or enter a new version(revision ID). Otherwise the deployment will fail.

c) View the Deployment – Log pane to verify that the deployment was successful.

2) Test the POProcessingComposite SOA composite with a set of predefined input parameters.

Page 84: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 84/230

Practice 7-3: Deploy ing and Testing the SOA Composi te(continued)

Oracle SOA Suite 11g: Essent ial Concepts A - 72

a) Log in to the Oracle Enterprise Manager 11 g Fusion Middleware Control console.

b) Test the POProcessingComposite SOA composite.

i) On the Oracle Enterprise Manager 11 g Fusion Middleware Control page, yousee two vertical panes. In the left pane, you see the domain and, under it, a listof folders. Expand the SOA > soa-infra (soa_server1) folder. You seePOProcessingComposite.

ii) Click the POProcessingComposite link to see the application details in theright pane.

iii) Click the Test button on the POProcessingComposite page.

iv) In the Test Web Service page, scroll down to the Input Arguments section andselect XML View from the drop-down list. Delete the existing XML code in

the text area in the XML view.

Page 85: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 85/230

Practice 7-3: Deploy ing and Testing the SOA Composi te(continued)

Oracle SOA Suite 11g: Essent ial Concepts A - 73

v) Use any text editor to open the po- smal l - Headset . t xt text file atD: \ l abs\ Appl i cat i on_Fi l es\ t est directory (a link is created on thedesktop with the name, Test ) and copy the XML code.

vi) On the Test Web Service page, paste the XML code in the text area of theXML view.

vii) Click the Test Web Service button.

c) Verify the result of testing the POProcessingComposite SOA composite.

Page 86: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 86/230

Practice 7-3: Deploy ing and Testing the SOA Composi te(continued)

Oracle SOA Suite 11g: Essent ial Concepts A - 74

i) In the Test Web Service page, on the Response tabbed subpage, verify that theTest Status is Passed.

Note: The Test Web Service page does not show any response because this isa one-way invocation with no reply or callback.

ii) Click the POProcessingComposite link in the left pane of the browser dialog box. You see that an instance has been added under the Recent Instancessection.

iii) Click the Instance ID to see the flow trace of the composite.

iv) In the Flow Trace page, under the Trace section, verify that the State columnshows Completed for the service, component, and reference.

Page 87: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 87/230

Practice 7-3: Deploy ing and Testing the SOA Composi te(continued)

Oracle SOA Suite 11g: Essent ial Concepts A - 75

v) You can also verify the result by opening the text file that has been created bythe File adapter service at the

D: \ l abs\ Appl i cat i on_Fi l es\ t est Resul t s directory (a link is createdon the desktop with the name, Test Results) with a text editor. Notice howfield names have been translated by the mapping and are different from theinput.

3) Close the text file and the Web browser window.

4) Close the Appl i cat i on_07. j ws workspace and remove it from the JDeveloperIDE.

Page 88: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 88/230

Page 89: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 89/230

Oracle SOA Suite 11g: Essent ial Concepts A - 77

The following diagram illustrates the tasks to be performed in this practice set.

BPEL Process

Page 90: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 90/230

Oracle SOA Suite 11g: Essent ial Concepts A - 78

Practice 8-1: Creating an Order Approval BPEL ProcessIn this practice, you create the appr oveLar geOr der BPEL process that initially verifiesthe credit card of the client and then, based on the credit card status, approves ordisapproves the order.

1) Open the Appl i cat i on_08. j ws workspace in JDeveloper.

a) From the File menu, select Open.

b) In the Open dialog box, navigate to the D: \ l abs\ Appl i cat i on_08 directory.Select Appl i cat i on_08. j ws and click the Open button.

c) In the Application Navigator pane, expand the POProcessingComposite > SOAContent folder and double-click composi t e. xml to open it in the SOAComposite editor pane.

2) Add a BPEL component to the POProcessingComposite.

a) Ensure that the SOA option is selected in the Component palette drop-down list.

b) Click and drag a BPEL Process component from the Component palette to theComponents column in the SOA Composite editor pane.

Page 91: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 91/230

Practice 8-1: Creating an Order Approval BPEL Process(continued)

Oracle SOA Suite 11g: Essent ial Concepts A - 79

c) In the Create BPEL Process dialog box, specify the following options and clickOK.

Name: appr oveLar geOr der

Template: Asynchronous BPEL Process

Service Name: approvel ar geor der _cl i ent

Expose as a SOAP Service: Deselect the option

Input: Click the flashlight icon, and in the Type chooser dialog box, expandProject Schema Files > Order.xsd and select Order.

Output: Click the flashlight icon, and in the Type chooser dialog box, expandProject Schema Files > Order.xsd and select Order.

3) Wire the appr oveLar geOr der BPEL process and the get Cr edi t Car dSt at us service in the SOA Composite editor, as shown in the following screenshot.

Page 92: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 92/230

Practice 8-1: Creating an Order Approval BPEL Process(continued)

Oracle SOA Suite 11g: Essent ial Concepts A - 80

4) Design the appr oveLar geOr der BPEL approval process.

a) Double-click the appr oveLar geOr der BPEL component in the SOAComposite editor to open the BPEL editor.

Note: Notice that the get Cr edi t Car dSt at us partner link is already in thePartner Links swim lane because you wired it in the composite.

b) Ensure that the “BPEL Activities and Components” option is selected in theComponent palette.

c) Add an Invoke activity to invoke the get Cr edi t Car dSt at us partner link.

i) Drag an Invoke activity from the Component palette to the BPEL editorwithin the workflow lane. Add the Invoke activity to an insertion point underthe r ecei veI nput activity.

Page 93: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 93/230

Practice 8-1: Creating an Order Approval BPEL Process(continued)

Oracle SOA Suite 11g: Essent ial Concepts A - 81

ii) Drag the wire from the Invoke activity to the get Cr edi t Car dSt at us .

Note: This tells your BPEL process to invoke that service.

iii) In the Edit Invoke dialog box, specify the following and click OK.

Name: i nvokeCCSt at usSer vi ce

Input Variable: Click the green [+] icon, and click OK to create a new globalvariable, accepting the default name and type.

Note: This variable contains the data that will be sent to the service, or theinput to the service.

Output Variable: Click the green [+] icon, and click OK to create a new globalvariable, accepting the default name and type.

Note: This variable contains the data that will be returned by the service, orthe output of the service.

Page 94: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 94/230

Practice 8-1: Creating an Order Approval BPEL Process(continued)

Oracle SOA Suite 11g: Essent ial Concepts A - 82

d) Add an Assign activity to assign data to a variable.

Note: You created the variables that are used when interacting with theget Cr edi t Car dSt at us service, but they have not been populated. The outputvariable will automatically be populated when the service returns a result, but youneed to populate the input variable that is going to be passed to the service. In thiscase you assign the credit card number that is passed into the POPr ocess i ng service to the get Cr edi t Car dSt at us service.

i) Drag an Assign activity (from the Component palette) above thei nvokeCCSt at usSer vi ce Invoke activity in the BPEL editor.

Page 95: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 95/230

Practice 8-1: Creating an Order Approval BPEL Process(continued)

Oracle SOA Suite 11g: Essent ial Concepts A - 83

ii) Double-click the Assign activity to edit it.

iii) Click the General tab and change the name to as si gnCCNumber .

iv) Click the Copy Operation tab.

v) Click the green [+] icon and select Copy Operation to open the Create CopyOperation dialog box, and specify the following details:

Page 96: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 96/230

Practice 8-1: Creating an Order Approval BPEL Process(continued)

Oracle SOA Suite 11g: Essent ial Concepts A - 84

From: Select Variables > Process > Variables > inputVariable > payload >Order > creditCardInfo > cardNumber

To: Select Variables > Process > Variables >invokeCCStatusService_execute_InputVariable > payload > process > input

vi) Click OK.vii) Add a second copy operation. Click the green [+] icon, select Copy Operation,

and specify the following details:

From: Select Variables > Process > Variables > inputVariable > payload >Order

To: Select Variables > Process > Variables > outputVariable > payload >Order

Click OK.

Page 97: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 97/230

Practice 8-1: Creating an Order Approval BPEL Process(continued)

Oracle SOA Suite 11g: Essent ial Concepts A - 85

Note: The second operation enables the BPEL process to return the input data,as well as some updates, which will be made later in the BPEL process.

viii) The Assign dialog box looks like the following screenshot:

Click OK to return to the BPEL process.

Page 98: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 98/230

Practice 8-1: Creating an Order Approval BPEL Process(continued)

Oracle SOA Suite 11g: Essent ial Concepts A - 86

ix) Click the green check button in the upper left of the BPEL process to validatethe process. The BPEL process looks like the following screenshot:

e) Add a Switch activity to process the data returned from theget Cr edi t Car dSt at us service.

i) Drag a Switch activity below the i nvokeCCSt at usSer vi ce Invoke activity.

Page 99: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 99/230

Practice 8-1: Creating an Order Approval BPEL Process(continued)

Oracle SOA Suite 11g: Essent ial Concepts A - 87

ii) Double-click the Switch activity’s name (which is probably something likeSwi t ch_1 ) just below the icon and rename it Eval uat eCCSt at us .Note: You can also double-click the Switch icon and change the name in thesubsequent dialog box, but if you double-click the text itself you can changethe activity name.

iii) Click the small [+] icon on the Switch activity to expand it.

Page 100: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 100/230

Practice 8-1: Creating an Order Approval BPEL Process(continued)

Oracle SOA Suite 11g: Essent ial Concepts A - 88

f) Add a condition in the Switch activity to compare the data returned from theget Cr edi t Car dSt at us service with a string value.

i) Click the View Condition Expression button.

ii) Click the XPath Expression Builder button.

iii) In the Expression Builder dialog box, expand Variables > Process > Variables> invokeCCStatusService_execute_OutputVariable > payload >

processResponse, and select “result” (in the BPEL Variables field).

iv) Click the Insert Into Expression button (the wide button under the Expressionfield).

Page 101: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 101/230

Practice 8-1: Creating an Order Approval BPEL Process(continued)

Oracle SOA Suite 11g: Essent ial Concepts A - 89

v) In the Expression field, put the cursor at the end and add: =' VALI D'

vi) Click OK.

Page 102: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 102/230

Practice 8-1: Creating an Order Approval BPEL Process(continued)

Oracle SOA Suite 11g: Essent ial Concepts A - 90

vii) Click outside the Condition Expression pop-up window to close it.

g) Add an Assign activity in the <case> part of the Switch activity.

Note: If the condition is true, then BPEL executes any activities in the <case> part of the switch. If not, any activities in the <otherwise> section are executed.

i) Drag an Assign activity (from the Component palette) into the <case> sectionof the Switch activity.

ii) Double-click the Assign activity to edit it.

iii) Click the General tab and change the name to ass i gnAppr oval .

iv) Click the Copy Operation tab.

v) Click the green [+] icon and select Copy Operation to open the Create CopyOperation dialog box, and specify the following details:

(1) In the From section: Change the Type list to Expression, and in theExpression field, enter ' appr oved' .

(2) In the To section: Select Variables > Process > Variables >outputVariable > payload > Order > status.

Page 103: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 103/230

Practice 8-1: Creating an Order Approval BPEL Process(continued)

Oracle SOA Suite 11g: Essent ial Concepts A - 91

vi) Click OK.

vii) Click OK to return to the BPEL process.

h) Add an Assign activity in the <otherwise> part of the switch activity.

i)

Drag an Assign activity (from the Component palette) into the <otherwise>section of the Switch activity.

ii) Double-click the Assign activity to edit it.

iii) Click the General tab and change the name to assi gnI nval i dCC .

iv) Click the Copy Operation tab.

v) Click the green [+] icon and select Copy Operation to open the Create CopyOperation dialog box, and specify the following details:

(1) In the From section: Change the Type list to Expression, and in theExpression field, enter ' i nval i dCr edi t Car d' .

(2) In the To section: Select Variables > Process > Variables >outputVariable > payload > Order > status.

Page 104: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 104/230

Practice 8-1: Creating an Order Approval BPEL Process(continued)

Oracle SOA Suite 11g: Essent ial Concepts A - 92

vi) Click OK.

vii) Click OK to return to the BPEL process.

i) At the top of BPEL designer, click the green check mark to validate the BPEL process. Any yellow flags should disappear and you should not see any warningmessages.

j) Save the BPEL process and close the BPEL editor dialog box to return to thecomposite.

Page 105: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 105/230

Oracle SOA Suite 11g: Essent ial Concepts A - 93

Practice 8-2: Modify ing the Mediator in the SOA CompositeIn this practice, you modify the r out ePO mediator component to route requests to boththe Wr i t eAppr oval Resul t s service and the appr oveLar geOr der BPEL process.Moreover, you also add a content-based routing rule to the mediator componentspecifying that order quantity under 10 units should be automatically approved whileorder quantity greater than or equal to 10 units needs to go through an approval process.

1) Wire the r out ePO Mediator to the appr oveLar geOr der BPEL process in the SOAComposite editor.

2) Double-click the r out ePO Mediator component in the SOA Composite editor toopen the Mediator editor.

3) Add the condition specifying that order quantity under 10 units should beautomatically approved.

a) In the Mediator editor pane, under the Routing Rules section, click the InvokeExpression Builder icon (the filter icon) for theWr i t eAppr oval Resul t s: : Wr i t e target service operation.

Page 106: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 106/230

Practice 8-2: Modify ing the Mediator in the SOA Composite(continued)

Oracle SOA Suite 11g: Essent ial Concepts A - 94

b) In the Expression Builder dialog box, build the following expression:

( $i n. r equest / i np1: Pur chaseOr der / i np1: quant i t y) < 10

Caution: Do not copy-paste this text into the expression, but use the Variablesframe to select the variables. The namespaces (such as, i np1: ) may be differentfor you.

Hint: Expand the nodes in the Variables section to find the field that you wantand click the Insert Into Expression button to add them.

Page 107: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 107/230

Practice 8-2: Modify ing the Mediator in the SOA Composite(continued)

Oracle SOA Suite 11g: Essent ial Concepts A - 95

c) Click OK.

4) Add the condition specifying that an order quantity more than or equal to 10 unitsneeds to go through an approval process.

a) In the Mediator editor pane, under the Routing Rules section, click the InvokeExpression Builder icon (the filter icon) for theappr ovel ar geor der / cl i ent : : pr ocess target service operation.

b) In the Expression Builder dialog box, build the following expression:

( $i n. r equest / i np1: Pur chaseOr der / i np1: quant i t y) >= 10

Caution: Do not copy-paste this text into the expression, but use the Variablesframe to select the variables. The namespaces (such as, i np1: ) may be differentfor you.

Hint: Expand the nodes in the Variables section to find the field that you wantand click the Insert Into Expression button to add them.

c) Click OK.

5) Set the callback of the asynchronous BPEL process to call the file adapter service.

a) In the Mediator editor pane, click the cog icon (the “Browse for target service”icon) next to the <<Target Operation>> field in the Callback section.

b) In the Target Type dialog box, click the Service button.

c) In the Target Services dialog box, select POProcessing > References >WriteApprovalResults > Write.

Page 108: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 108/230

Practice 8-2: Modify ing the Mediator in the SOA Composite(continued)

Oracle SOA Suite 11g: Essent ial Concepts A - 96

d) Click OK.

6) Add a transformation for routing data from the service interface to the BPEL process.

a) In the Mediator editor pane, click the “Select an existing mapper file or create a

new one” icon (for the approvel ar geor der / cl i ent : : pr ocess targetservice operation).

Page 109: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 109/230

Practice 8-2: Modify ing the Mediator in the SOA Composite(continued)

Oracle SOA Suite 11g: Essent ial Concepts A - 97

b) In the Request Transformation Map dialog box, select the Create New MapperFile option. Enter r ecei veOr der _To_appr oveOr der . xsl in the respectivetext field, and click OK.

c) In the XSLT Mapper pane, drag Pur chaseOr der from the source side to Order

on the target side. You will be prompted for auto-mapping preferences.d) In the Auto Map Preferences dialog box, click OK (since you already added the

dictionary earlier).

e) The resulting transformation looks like the following:

Save and close the mapper to return to the Mediator editor.

Note: Select Save All from the File menu or from the toolbar, to make sure thateverything is saved.

7) Add a transformation for routing data from the BPEL process to the file adapter

service.a) In the Mediator editor pane, under the Callback section, click the “Select an

existing mapper file or create a new one” icon (for theWr i t eAppr oval Resul t s: : Wr i t e target service operation).

b) In the Request Transformation Map dialog box, select the Create New MapperFile option. Enter approveOr der _To_wr i t eOr der . xsl in the respective textfield, and click OK.

c) In the XSLT Mapper pane, drag Order from the source side to Order on the targetside. You will be prompted for auto-mapping preferences.

d) In the Auto Map Preferences dialog box, click OK (since you already added thedictionary earlier).

e) The resulting transformation looks like the following screenshot:

Page 110: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 110/230

Practice 8-2: Modify ing the Mediator in the SOA Composite(continued)

Oracle SOA Suite 11g: Essent ial Concepts A - 98

Save and close the mapper to return to the Mediator editor.8) Save and close the Mediator editor to return to the composite.

Note: Select Save All from the File menu or from the toolbar, to make sure thateverything is saved.

Page 111: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 111/230

Oracle SOA Suite 11g: Essent ial Concepts A - 99

Practice 8-3: Deploying and Testing the SOA Composi teIn this practice, you deploy the POProcessingComposite SOA composite application tothe application server. You also test the SOA composite by using the Oracle EnterpriseManager 11 g Fusion Middleware Control console. In the Mediator practice set, yousubmitted a small order, which created an order file directly. This time you create a largeorder, which the Mediator will route to the appr oveLar geOr der BPEL process.

1) Deploy the POProcessingComposite SOA composite to Oracle SOA Suite 11 g .

a) In the Application Navigator menu of JDeveloper, right-clickPOProcessingComposite (the SOA project) and select Deploy >POProcessingComposite > to > MyApplicationServerConnection.

b) In the SOA Deployment Configuration dialog box, select the “Overwrite anyexisting composites with the same revision ID” option and click OK.

Note: If you are redeploying your application with the same revision number, youmust select the option to overwrite the previous version or enter a new version(revision ID). Otherwise the deployment will fail.

c) View the Deployment – Log pane to verify that the deployment was successful.

2)

Test the POProcessingComposite SOA composite with a set of predefined input parameters.

a) Log in to the Oracle Enterprise Manager 11 g Fusion Middleware Control console.

b) Test the POProcessingComposite SOA composite.

Page 112: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 112/230

Practice 8-3: Deploy ing and Testing the SOA Composi te(continued)

Oracle SOA Suite 11g: Essent ial Concepts A - 100

i) On the Oracle Enterprise Manager 11 g Fusion Middleware Control page, yousee two vertical panes. In the left pane, you see the domain and under it a listof folders. Expand the SOA > soa-infra (soa_server1) folder. You seePOProcessingComposite.

ii) Click the POProcessingComposite link to see the application details in theright pane.

iii) Click the Test button on the POProcessingComposite page.

iv) In the Test Web Service page, scroll down to the Input Arguments section andselect XML View from the drop-down list. Delete the existing XML code inthe text area in the XML view.

v) Open the text file ( po- l ar ge- i Pod. t xt ) atD: \ l abs\ Appl i cat i on_Fi l es\ t est by using any text editor (such asnotepad), and copy the XML code.

vi) On the Test Web Service page, paste the XML code in the text area of theXML view.

vii) Click the Test Web Service button.c) Verify the result of testing the POProcessingComposite SOA composite.

i) On the Test Web Service page, under the Response tab, verify that the TestStatus is Passed.

Note: The Test Web Service page does not show any response because this isa one-way invocation with no reply or callback.

Page 113: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 113/230

Practice 8-3: Deploy ing and Testing the SOA Composi te(continued)

Oracle SOA Suite 11g: Essent ial Concepts A - 101

ii) Click the POProcessingComposite link in the left pane of the browser dialog box. You see that an instance has been added under the Recent Instancessection.

iii) Click the Instance ID to see the flow trace of the composite.

iv) In the Flow Trace page, under the Trace section, verify that the State columnshows completed for the service, component, and reference.

v) You can also verify the result by opening the new text file ( or der _n. t xt )that has been created by the File adapter service at theD: \ l abs\ Appl i cat i on_Fi l es\ t est Resul t s directory with a texteditor.

3) Retest the SOA Composite using the same input data, but this time, change the creditcard number to 4321- 4321- 4321- 4321 , which represents an invalid credit card.

4) Observe the order status in the new text file that has been created by the File adapterservice at the D: \ l abs\ Appl i cat i on_Fi l es\ t est Resul t s directory. TheinvalidCreditCard status is the result of the <swi t ch> statement in theappr oveLar geOr der BPEL process.

Page 114: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 114/230

Practice 8-3: Deploy ing and Testing the SOA Composi te(continued)

Oracle SOA Suite 11g: Essent ial Concepts A - 102

5) Close the Web browser window.

6) Close the Appl i cat i on_08. j ws workspace and remove it from the JDeveloperIDE.

Page 115: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 115/230

Oracle SOA Suite 11g: Essent ial Concepts A - 103

Practices for Lesson 9

The goal of the practices in this lesson is to add and configure a Human Task componentin the POProcessingComposite SOA composite. The Manual POAppr oval Human Taskis accessed by the approveLar geOr der BPEL process for manually approving large

orders that have a valid credit card status.

When the Human Task is added to the <case> branch of the Eval uat eCCSt at us Switch activity, a t askSwi t ch activity is also added at the same time as the HumanTask. The t askSwi t ch is configured with an <otherwise> branch and a <case> branchfor each outcome configured in the Human Task. In this practice, you add activities foreach branch in the t askSwi t ch .

In addition, by using JDeveloper you generate a simple task form to display purchaseorder information in the Worklist application for the assignee approving the order.

In this practice set, you perform the following tasks:1. Create a Human Task in the POProcessingComposite to manually approve large

orders.2. Access and configure the Human Task in the appr oveLar geOr der BPEL

process.3. Deploy and test the SOA composite in Oracle SOA Suite 11 g .

Page 116: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 116/230

Oracle SOA Suite 11g: Essent ial Concepts A - 104

The following diagram illustrates the tasks to perform in this practice set.

BPEL Process

Page 117: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 117/230

Oracle SOA Suite 11g: Essent ial Concepts A - 105

Practice 9-1: Creating a Human Task for Manual Order ApprovalIn this practice, you create and configure the Manual POAppr oval Human Taskcomponent in the POProcessingComposite SOA composite.

1) Open the Appl i cat i on_09. j ws workspace in JDeveloper.

a) From the File menu, select Open.

b) In the Open dialog box, navigate to the D: \ l abs\ Appl i cat i on_09 directory.Select Appl i cat i on_09. j ws and click the Open button.

c) In the Application Navigator pane, expand the POProcessingComposite > SOAContent folder and double-click composi t e. xml to open it in the SOAComposite editor pane.

2) Add a Human Task component to the POProcessingComposite.a) Ensure that the SOA option is selected in the Component palette drop-down list.

b) Click and drag a Human Task component from the Component palette to theComponents column in the SOA Composite editor pane.

Page 118: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 118/230

Practice 9-1: Creating a Human Task for Manual Order Approval(continued)

Oracle SOA Suite 11g: Essent ial Concepts A - 106

c) In the Create Human Task dialog box, specify the following options and clickOK.

Name: Manual POApproval

Namespace: Leave as default

3) Wire the appr oveLar geOr der BPEL process to the Manual POAppr oval HumanTask component.

4) Create the task definitions for the Manual POAppr oval Human Task component.

a) Double-click the Manual POApproval Human Task component in the SOAComposite editor to open the Task Definition editor.

b) In the Task Definition editor, specify the following settings:

Page 119: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 119/230

Practice 9-1: Creating a Human Task for Manual Order Approval(continued)

Oracle SOA Suite 11g: Essent ial Concepts A - 107

i) Title: Using the expression builder button on the right, enter ‘ Appr oveLar ge Or der ’ and click OK. You see <%' Appr ove Lar ge Or der ' %>entered as the value.

ii) Description: Manual approval task for large orders

c) Add a parameter to the task definition.

i) In the Parameters section, click the green [+] sign to open the Add TaskParameter dialog box.

ii) Select the Element option.iii) Click the “Browse for complex types” icon for the Element option.

Page 120: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 120/230

Practice 9-1: Creating a Human Task for Manual Order Approval(continued)

Oracle SOA Suite 11g: Essent ial Concepts A - 108

iv) In the Type Chooser dialog box, expand Project Schema Files > Order.xsdand select Order.

v) Click OK.

vi) Select the “Editable via worklist” option.

vii) Click OK in the Add Task Parameter dialog box.

d) Add a participant to the task definition.

i) In the Assignment and Routing Policy section, double-click the <no participant> box in the diagram.

Page 121: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 121/230

Practice 9-1: Creating a Human Task for Manual Order Approval(continued)

Oracle SOA Suite 11g: Essent ial Concepts A - 109

ii) In the Add Participant Type dialog box, specify the following:

Type: Single

Label: Lar ge Or der Appr over

iii) In the Add Participant Type dialog box, click the green [+] sign next toParticipant Names and select Add User.

iv) Accept the default values for the Identification Type and Data Type fields.Enter webl ogi c in the Value field.

v) Click OK.

Page 122: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 122/230

Practice 9-1: Creating a Human Task for Manual Order Approval(continued)

Oracle SOA Suite 11g: Essent ial Concepts A - 110

5) Save and close the Task Definition editor and return to the SOA Composite editor.

Page 123: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 123/230

Oracle SOA Suite 11g: Essent ial Concepts A - 111

Practice 9-2: Accessing the Human Task f rom the BPEL ProcessIn this practice, you add and configure a Human Task activity in theappr oveLar geOr der BPEL process. In the Human Task activity, you select theManual POApproval Human Task component that you added to thePOProcessingComposite SOA composite in the previous practice for implementing thetask definitions.

1) In the SOA Composite editor, double-click the appr oveLar geOr der BPEL processto open the BPEL designer.

2) Add a Human Task activity into the <case> branch of the Eval uat eCCSt at us Switch activity.

a) Drag a Human Task activity from the Component palette into the <case> branchof the Eval uat eCCSt at us Switch activity, below the ass i gnAppr oval Assign activity.

b) In the Create Human Task dialog box, select Manual POAppr oval from the TaskDefinition drop-down list.

Page 124: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 124/230

Practice 9-2: Accessing the Human Task from the BPEL Process(continued)

Oracle SOA Suite 11g: Essent ial Concepts A - 112

c) In the Create Human Task dialog box, enter Appr ove Lar ge Or der in theTask title field.

d) Click the ellipsis […] button to the right of the Order field (under Task Parameter)to select the BPEL variable that needs to be passed as the input parameter.

e) In the Task Parameters dialog box, ensure that the Type list contains the Variableoption. Then select Variables > Process > Variables > outputVariable > payload >Order, and click OK.

Page 125: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 125/230

Practice 9-2: Accessing the Human Task from the BPEL Process(continued)

Oracle SOA Suite 11g: Essent ial Concepts A - 113

Note: The outputVariable has all the information collected so far.

f) Click OK to close the Create Human Task dialog box.

3) Add an Assign activity in the <case Task outcome is APPROVE> part of thet askSwi t ch Switch activity (if the request is approved). Ensure that you expand theSwitch activity (by clicking the + icon) before adding the Assign activity.

Note: Notice that there are two new activities in the BPEL process: a Human Taskand a Switch activity ( t askSwi t ch ). The Human Task handles getting the approval(or rejection) from users using a Worklist application. The Switch activity is used toevaluate the results from the Human Task, such as the task being approved, rejected,withdrawn, or expired.

Page 126: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 126/230

Practice 9-2: Accessing the Human Task from the BPEL Process(continued)

Oracle SOA Suite 11g: Essent ial Concepts A - 114

a) Drag the ass i gnAppr oval Assign activity below the CopyPayl oadFr omTask Assign activity in the <case Task outcome is APPROVE> branch of thet askSwi t ch Switch activity.

Note: The approved case was already created earlier while constructing theappr oveLar geOr der BPEL process. Therefore, you can reuse that.

4) Specify the message in the <case Task outcome is REJECT> part of the t askSwi t ch Switch activity (if the request is rejected).

a) Double-click the CopyPayl oadFr omTask Assign activity in the <case Taskoutcome is REJECT> branch.

b) Click the green [+] icon and select Copy Operation to open the Create CopyOperation dialog box, and specify the following details:

Page 127: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 127/230

Practice 9-2: Accessing the Human Task from the BPEL Process(continued)

Oracle SOA Suite 11g: Essent ial Concepts A - 115

i) In the From section: Change the Type list to Expression and in the Expression field, enter ' r ej ect ed' .

ii) In the To section: Select Variables > Process > Variables > outputVariable >

payload > Order > status.

c) Click OK.

d) Click OK to return to the BPEL process.

Page 128: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 128/230

Practice 9-2: Accessing the Human Task from the BPEL Process(continued)

Oracle SOA Suite 11g: Essent ial Concepts A - 116

5) Specify the message in the <otherwise> part of the t askSwi t ch Switch activity (ifthe request is expired).

a) Double-click the CopyPayl oadFr omTask Assign activity in the <otherwise> branch.

b) Click the green [+] icon and select Copy Operation to open the Create CopyOperation dialog box, and specify the following details:

i) In the From section: Change the Type list to Expression and in the Expression field, enter ' expi r ed' .

Page 129: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 129/230

Practice 9-2: Accessing the Human Task from the BPEL Process(continued)

Oracle SOA Suite 11g: Essent ial Concepts A - 117

ii) In the To section: Select Variables > Process > Variables > outputVariable > payload > Order > status.

c) Click OK.

d) Click OK to return to the BPEL process.

6) Create the task form for task details that includes the task payload and actions youdefined in the task.

Note: The task form is an ADF form that is created in a separate project. You cancreate a JSF project to manage the task form and point it to the task file that youcreate in your composite. When you want a default task form, it is a simple one-clickoperation.

a) In the BPEL process, right-click the Manual POAppr oval _1 Human Taskactivity and select the Auto-Generate Task Form option from the shortcut menu.

Page 130: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 130/230

Practice 9-2: Accessing the Human Task from the BPEL Process(continued)

Oracle SOA Suite 11g: Essent ial Concepts A - 118

b) Enter Appr oveTaskDet ai l in the project name field for the task form and clickOK. JDeveloper generates the necessary artifacts for the ApproveTaskDetail

project (it may look like nothing is happening at first, but be patient). You see thetask details form ( t askDet ai l s1. j spx ) open.

Page 131: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 131/230

Practice 9-2: Accessing the Human Task from the BPEL Process(continued)

Oracle SOA Suite 11g: Essent ial Concepts A - 119

c) Save all and close the task form and task flow dialog box.

7) Save and close the BPEL process.

Page 132: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 132/230

Oracle SOA Suite 11g: Essent ial Concepts A - 120

Practice 9-3: Deploying and Testing the SOA Composi teIn this practice, you deploy the POProcessingComposite SOA composite application tothe application server. You also test the SOA composite by using the Oracle EnterpriseManager 11 g Fusion Middleware Control console.In the BPEL practice set, you create a large order, which the Mediator routes through theappr oveLar geOr der BPEL process. In this practice, you use the default Oracle BPMWorklist application to approve the order.

1) Deploy the ApproveTaskDetail project to Oracle SOA Suite 11 g .

a) Click the Applications Menu icon (next to Application_09) and select the Deploy> ApproveTaskDetail > to > MyApplicationServerConnection option from thelisted options.

Note: Never deploy the application by right-clicking the ApproveTaskDetail project and selecting the Deploy option from the shortcut menu. It is not a SOAComposite application.

b) In the Select Deployment Targets dialog box, select “soa_server1” and click OK.

c) View the Deployment – Log pane to verify that the deployment was successful.

Page 133: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 133/230

Practice 9-3: Deploy ing and Testing the SOA Composi te(continued)

Oracle SOA Suite 11g: Essent ial Concepts A - 121

2) Deploy the POProcessingComposite SOA composite to Oracle SOA Suite 11 g .

a) In the Application Navigator menu of JDeveloper, right-clickPOProcessingComposite (the SOA project) and select the Deploy >POProcessingComposite > to > MyApplicationServerConnection option.

b) In the SOA Deployment Configuration dialog box, select the “Overwrite anyexisting composites with the same revision ID” option and click OK.Note: If you are redeploying your application with the same revision number, youmust select the option to overwrite the previous version or enter a new version(revision ID). Otherwise the deployment will fail.

c) View the Deployment – Log pane to verify that the deployment was successful.

3) Test the POProcessingComposite SOA composite with a set of predefined input parameters.

a) Log in to the Oracle Enterprise Manager 11 g Fusion Middleware Control console.

b) Test the POProcessingComposite SOA composite.

i) In the Oracle Enterprise Manager 11 g Fusion Middleware Control page, yousee two vertical panes. On the left pane, you see the domain and under it a listof folders. Expand the SOA > soa-infra (soa_server1) folder. You seePOProcessingComposite.

ii) Click the POProcessingComposite link to see the application details on theright pane.

iii) Click the Test button on the POProcessingComposite page.

iv) In the Test Web Service page, scroll down to the Input Arguments section andselect XML View from the drop-down list. Delete the existing XML code in

the text area in the XML view.v) Open the text file ( po- l ar ge- i Pod. t xt ) at

D: \ l abs\ Appl i cat i on_Fi l es\ t est by using any text editor (such asnotepad), and copy the XML code.

vi) In the Test Web Service page, paste the XML code in the text area of theXML view.

vii) Click the Test Web Service button.

Page 134: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 134/230

Practice 9-3: Deploy ing and Testing the SOA Composi te(continued)

Oracle SOA Suite 11g: Essent ial Concepts A - 122

viii) In the Test Web Service page, on the Response tabbed subpage, verify that theTest Status is passed.

Note: The Test Web Service page does not show any response because this isa one-way invocation with no reply or callback.

ix) Click the POProcessingComposite link in the left pane of the browser dialog box. You see that an instance has been added under the Recent Instancessection.

x) Click the Instance ID to see the flow trace of the composite.

xi) In the Flow Trace page, under the Trace section, notice that the State columnshows the Running status, the Mediator, BPEL, and the Human Workflowcomponent.

c) Approve the order by using the Oracle BPM Worklist application. OracleWorklist application is an application that can be used to view and manage humantasks.

i)

Open a Web browser and log in to the Oracle BPM Worklist application byspecifying the following URL:

ht t p: / / l ocal host : 8001/ i nt egr at i on/ wor kl i st app .

ii) Enter the user name as webl ogi c and the password as wel come1 . ClickLogin.

Page 135: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 135/230

Practice 9-3: Deploy ing and Testing the SOA Composi te(continued)

Oracle SOA Suite 11g: Essent ial Concepts A - 123

iii) In the Oracle BPM Worklist page, click the most recent task to highlight it.The task details page opens it in the lower frame of the work list application.

Note: The first time the task is opened, there will be a delay of a minute whilethe pieces of the form are compiled and loaded.

iv) When the form opens, you can see the task details and the different options.From the Actions menu, select Approve. This submits the task and notifies theBPEL to continue processing.

Note: You should use the Actions menu to select the task to approve or reject.If instead, you use the Approve or Reject buttons in the lower part of thedialog box, the screen will not change even though the task is submitted. Clickthe refresh icon at the top left to clear the task from the screen.

Page 136: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 136/230

Practice 9-3: Deploy ing and Testing the SOA Composi te(continued)

Oracle SOA Suite 11g: Essent ial Concepts A - 124

4) Revisit the Oracle Enterprise Manager 11 g Fusion Middleware Control console andrefresh the Flow Trace page. You see that the State column shows a Completed statusfor all the service components.

5) Observe the order status in the new text file that has been created by the File adapterservice at the D: \ l abs\ Appl i cat i on_Fi l es\ t est Resul t s directory.

Hint: Check the date and time of the text file to view the most recent file created bythe file adapter.

Page 137: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 137/230

Practice 9-3: Deploying and Testing the SOA Composi te(continued)

Oracle SOA Suite 11g: Essent ial Concepts A - 125

6) Execute the same test case again, and reject the order in the Oracle BPM Worklistapplication. Verify the result.

7) Close the Web browser window.

8) Close the Appl i cat i on_09. j ws workspace and remove it from the JDeveloperIDE.

a) From the Application menu, select Close Application.

b) In the Confirm Close Application dialog box, select the first option (Closeapplication and remove it from IDE) and click OK.

Page 138: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 138/230

Oracle SOA Suite 11g: Essent ial Concepts A - 126

Practices for Lesson 10

The goal of the practices in this lesson is to add and configure a Business Rulecomponent in the POProcessingComposite SOA composite. The Manual Appr oval Business Rule is accessed by the appr oveLar geOr der BPEL process to make the

decision of whether the human task is required for manual approval. If the total ordervalue is more than or equal to $5000, a customer service representative must manuallyapprove the order.

In this practice set, you perform the following tasks:1. Create a Business Rule component in the POProcessingComposite to specify the

condition of manually approving only those orders that have the order value ofmore than or equal to $5000.

2. Access and configure the Business Rule component in the appr oveLargeOr der BPEL process.

3. Deploy and test the SOA composite in Oracle SOA Suite 11 g .

Page 139: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 139/230

Oracle SOA Suite 11g: Essent ial Concepts A - 127

The following diagram illustrates the tasks to perform in this practice set.

BPEL Process

Page 140: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 140/230

Oracle SOA Suite 11g: Essent ial Concepts A - 128

Practice 10-1: Adding a Business Rule toPOProcessingCompositeIn this practice, you create and configure the Manual Appr oval Business Rulecomponent in the POProcessingComposite SOA composite. The business rule enables thecomposite to make the decision of whether the human task is required for manual

approval or not.1) Open the Appl i cat i on_10. j ws workspace in JDeveloper.

a) From the File menu, select Open.

b) In the Open dialog box, navigate to the D: \ l abs\ Appl i cat i on_10 directory.Select Appl i cat i on_10. j ws and click the Open button.

c) In the Application Navigator pane, expand the POProcessingComposite > SOAContent folder and double-click composi t e. xml to open it in the SOAComposite editor pane.

2) Add a Business Rule component to the POProcessingComposite.

a) Ensure that the SOA option is selected in the Component palette drop-down list. b) Click and drag a Business Rule component from the Component palette to the

Components column in the SOA Composite editor pane.

c) In the Create Business Rules dialog box:i) Specify the following options:

Name: Manual Appr oval

Package: popr ocessi ngcomposi t e

ii) Click the green [+] list and select Input.

Page 141: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 141/230

Practice 10-1: Adding a Business Rule toPOProcessingComposite (continued)

Oracle SOA Suite 11g: Essent ial Concepts A - 129

iii) In the Type Chooser dialog box, click the top-right button (Import SchemaFile) to import a schema, and then browse to the schema location:D: \ l abs\ Appl i cat i on_Fi l es \ schemas\Or der Appr oval . xsd to select the schema.

iv) In the Type Chooser dialog box, expand and select Project Schema Files >OrderApproval.xsd > orderValue for the input schema. Click OK.

Page 142: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 142/230

Page 143: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 143/230

Page 144: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 144/230

Practice 10-1: Adding a Business Rule toPOProcessingComposite (continued)

Oracle SOA Suite 11g: Essent ial Concepts A - 132

h)

Click <target> and select appr oval .

i) Select the <add property> box and a dialog box opens to allow you to set the property values. Set the value of appr oval Requi r ed to t r ue by double-clicking the approvalRequired row on the Value column and specifying the value.Press Enter to accept the value.

j) Repeat the process to add a second rule for orders less than $5000. In this case,approval is not required.

Page 145: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 145/230

Practice 10-1: Adding a Business Rule toPOProcessingComposite (continued)

Oracle SOA Suite 11g: Essent ial Concepts A - 133

k) Ruleset_1 should match the following screenshot:

l) Save and close the Rules editor.

Page 146: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 146/230

Oracle SOA Suite 11g: Essent ial Concepts A - 134

Practice 10-2: Accessing the Business Rule from the BPELProcessIn this practice, you add and configure a Business Rule activity in theappr oveLar geOr der BPEL process. In the Business Rule activity, you select theManual Appr oval Business Rule component that you added to thePOProcessingComposite SOA composite in the previous practice for implementing thecondition of manually approving orders that are more than or equal to $5000.

1) In the SOA Composite editor, double-click the appr oveLar geOr der BPELcomponent to open the BPEL designer.

2) Create a BPEL variable to store the output from the ruleset.

a) In the Structure palette of JDeveloper, expand Variables > Process and select theVar i abl es node.

b) Click the green [+] icon to add a variable named appr oval Requi r ed . Select theElement type option, and browse and select the appr oval element from the

Or der Appr oval . xsd schema. Click OK.

Page 147: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 147/230

Practice 10-2: Accessing the Bus iness Rule from the BPELProcess (continued)

Oracle SOA Suite 11g: Essent ial Concepts A - 135

3) Add a Business Rule activity into the BPEL workflow.

a) Drag a Business Rule activity from the Component palette into the <case> branchof the Eval uat eCCSt at us Switch activity, just before theManual POAppr oval _1 Human Task activity.

Page 148: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 148/230

Page 149: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 149/230

Practice 10-2: Accessing the Bus iness Rule from the BPELProcess (continued)

Oracle SOA Suite 11g: Essent ial Concepts A - 137

iv) Click OK.

v) Click the Assign Output Facts tabbed subpage, and click the green [+] icon onit.

vi) In the Decision Fact Map dialog box, set the output value to the variable you just created (approvalRequired).

From: Select the following variable:

Variables > com_globalcompany…. > approval > approvalRequired

To: Select the following variable:Variables > Process > Variables > approvalRequired > approval >approvalRequired

Page 150: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 150/230

Practice 10-2: Accessing the Bus iness Rule from the BPELProcess (continued)

Oracle SOA Suite 11g: Essent ial Concepts A - 138

vii) Click OK.

viii) Click OK to close the dialog.

4) Add a Switch activity into the BPEL workflow to route the workflow data, based onthe rule action.

a) Drag a Switch activity from the Component palette below the Appr oval Rul e Rule activity.

b) Expand the Switch activity.

c) Drag the Manual POAppr oval _1 Human Task activity into the <case> block forthis Switch so that it only executes when the test case is true. There is thet askSwi t ch Switch activity that follows the Manual POAppr oval _1 HumanTask for processing the Human Task results (which sets the status to approved orrejected accordingly). Move the t askSwi t ch Switch activity into the newSwitch activity’s <case> block.

Page 151: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 151/230

Practice 10-2: Accessing the Bus iness Rule from the BPELProcess (continued)

Oracle SOA Suite 11g: Essent ial Concepts A - 139

Page 152: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 152/230

Practice 10-2: Accessing the Bus iness Rule from the BPELProcess (continued)

Oracle SOA Suite 11g: Essent ial Concepts A - 140

d) Use the Expression Builder to set the test case expression in the case block:bpws: get Var i abl eDat a( ' appr oval Requi r ed' , ' / ns4: appr oval / ns4:appr oval Requi r ed' ) = ' t r ue'

Page 153: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 153/230

Practice 10-2: Accessing the Bus iness Rule from the BPELProcess (continued)

Oracle SOA Suite 11g: Essent ial Concepts A - 141

e) Drag an Assign activity from the Component palette to the <otherwise> block ofthe new Switch activity.

f) Double-click the Assign activity to edit it.

g) Click the General tab and change the name to aut oAppr oved .

h) Click the Copy Operation tab.

i) Click the green [+] icon and select Copy Operation to open the Create CopyOperation dialog box, and specify the following details:

i) In the From section, change the Type list to Expression, and in the Expressionfield, enter ' appr oved' .

ii) In the To section, select Variables > Process > Variables > outputVariable > payload > Order > status.

Page 154: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 154/230

Practice 10-2: Accessing the Bus iness Rule from the BPELProcess (continued)

Oracle SOA Suite 11g: Essent ial Concepts A - 142

j) Click OK.

k) Click OK to return to the BPEL process.

5) The complete BPEL process looks like the following:

Page 155: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 155/230

Practice 10-2: Accessing the Bus iness Rule from the BPELProcess (continued)

Oracle SOA Suite 11g: Essent ial Concepts A - 143

Page 156: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 156/230

Oracle SOA Suite 11g: Essent ial Concepts A - 144

Practice 10-3: Deploying and Testing the SOA CompositeIn this practice, you deploy the POProcessingComposite SOA Composite application tothe application server. You also test the SOA composite by using the Oracle EnterpriseManager 11 g Fusion Middleware Control console.

1) Deploy the POProcessingComposite SOA composite to Oracle SOA Suite 11 g .

a) In the Application Navigator menu of JDeveloper, right-clickPOProcessingComposite (the SOA project) and select the Deploy >POProcessingComposite > to > MyApplicationServerConnection option.

b) In the SOA Deployment Configuration dialog box, select the “Overwrite anyexisting composites with the same revision ID” option and click OK.

c) View the Deployment – Log pane to verify that the deployment was successful.

2) Test the POProcessingComposite SOA composite with a set of predefined input parameters.

a) Log in to the Oracle Enterprise Manager 11 g Fusion Middleware Control console.

b) Test the POProcessingComposite SOA composite.i) On the Oracle Enterprise Manager 11 g Fusion Middleware Control page, you

see two vertical panes. In the left pane, you see the domain and under it a listof folders. Expand the SOA > soa-infra (soa_server1) folder. You seePOProcessingComposite.

ii) Click the POProcessingComposite link to see the application details in theright pane.

iii) Click the Test button on the POProcessingComposite page.

iv) On the Test Web Service page, scroll down to the Input Arguments section

and select XML View from the drop-down list. Delete the existing XML codein the text area in the XML view.

v) Open the text file ( po- smal l - Headset . t xt ) atD: \ l abs\ Appl i cat i on_Fi l es\ t est by using any text editor, and copy theXML code.

vi) In the Test Web Service page, paste the XML code in the text area of theXML view.

vii) Click the Test Web Service button.

c) Verify the result of testing the POProcessingComposite SOA composite.

i) In the Test Web Service page, on the Response tabbed subpage, verify that theTest Status is Passed.

Note: The Test Web Service page does not show any response because this isa one-way invocation with no reply or callback.

ii) Click the POProcessingComposite link in the left pane of the browser dialog box. You see that an instance has been added in the Recent Instances section.

iii) Click the Instance ID to see the flow trace of the composite.

Page 157: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 157/230

Practice 10-3: Deploying and Testing the SOA Composite(continued)

Oracle SOA Suite 11g: Essent ial Concepts A - 145

iv) In the Flow Trace page, in the Trace section, verify that the State columnshows completed for the service, component, and reference.

v) You can also verify the result by opening the text file that has been created bythe File adapter service at the

D: \ l abs\ Appl i cat i on_Fi l es\ t est Resul t s directory with a texteditor. Notice how field names have been translated by the mapping and aredifferent from the input.

Hint: Check the date and time of the text file to view the most recent filecreated by the file adapter.

Additional Test Cases

There are four test cases for the POProcessingComposite SOA composite depending onthe input data value of the total quantity:

1. Under 10 units: auto approval without the BPEL Process component

2. Order value (price x quantity) under $5000: auto approval using the BPELProcess component and the Business Rules component, but no Human Taskcomponent

Note: Quantity more than 10 units

3. Order value more than or equal to $5000: manual approval using the BPELProcess component, Business Rules component, and Human Task component

Note: Quantity more than 10 units

3) Close the Web browser window.

Page 158: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 158/230

Oracle SOA Suite 11g: Essent ial Concepts A - 146

Practices for Lesson 11

In this practice set, you secure the SOA composite by attaching policies to the serviceendpoints.

You perform the following task:1. Attach user _name_secur i t y_pol i cy to the r ecei vePO Web service.2. Attach l og_pol i cy to the r ecei vePO service endpoint.

Page 159: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 159/230

Page 160: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 160/230

Practice 11-1: Attach username_token_security_policy tothe receivePO Service Endpoint (con tinued)

Oracle SOA Suite 11g: Essent ial Concepts A - 148

a)

b)

Page 161: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 161/230

Page 162: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 162/230

Practice 11-1: Attach username_token_security_policy tothe receivePO Service Endpoint (con tinued)

Oracle SOA Suite 11g: Essent ial Concepts A - 150

e)

f)

Page 163: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 163/230

Practice 11-1: Attach username_token_security_policy tothe receivePO Service Endpoint (con tinued)

Oracle SOA Suite 11g: Essent ial Concepts A - 151

g)

h)

Page 164: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 164/230

Oracle SOA Suite 11g: Essent ial Concepts A - 152

Practice 11-2: Attach log_policy to the receivePO ServiceEndpointIn this practice/task, you attach l og_pol i cy to the r ecei vePO service endpoint. This

policy causes the request, response and fault messages to be sent to a message log. Inorder to attach this policy, use the following details:

Step Screen/Page Description Choices or Valuesa. Start Oracle Enterprise

Manager Fusion MiddlewareControl

In your browser, type the following URL:ht t p: / / l ocal host : 7001/ emSpecify the username and password:Username: webl ogi c Password: wel come1

b. Policies Page Click soa-infra under the SOA folder.Select the POProcessing composite byclicking it.Click the Policies tab.

c. Attaching Policy Click Attach To/Detach From.Select r ecei vePO .d. Select the Policy Under Attached Policies, select

or acl e/ l og_pol i cy .Click the Attach button.

e. Validation Click the Validate button. If a“successful” message appears, click OK.

f. Test - Authentication Click the Test tab.In the Test Web Service page, on theRequest tabbed subpage, select the WSSUsername Token option.

Provide the username and password:Username: webl ogi c Password: wel come1

g. Test – Input Arguments Under Input Arguments, select the XMLview.Copy the contents from thepo- smal l - Headset . t xt file (you canfind this file underD: \ l abs\ Appl i cat i on_Fi l es\ t est )and paste the data in the XML view(under the input arguments section in the

test Web services page).h. Test - Verify Click Test Web Service.

Page 165: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 165/230

Page 166: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 166/230

Practice 11-2: Attach log_policy to the receivePO ServiceEndpoin t (continued)

Oracle SOA Suite 11g: Essent ial Concepts A - 154

c)

d)

Page 167: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 167/230

Practice 11-2: Attach log_policy to the receivePO ServiceEndpoin t (continued)

Oracle SOA Suite 11g: Essent ial Concepts A - 155

e)

f)

Page 168: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 168/230

Practice 11-2: Attach log_policy to the receivePO ServiceEndpoin t (continued)

Oracle SOA Suite 11g: Essent ial Concepts A - 156

g)

h)

Page 169: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 169/230

Copyright © 2009, Oracle. All rights reserved.

Introduction to Linux

Page 170: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 170/230Oracle SOA Suite 11 g : Essential Concepts B - 2

Copyright © 2009, Oracle. All rights reserved.

What Is Linux?

• Linux is a UNIX-based operating system, created by Linus

Torvalds at the University of Helsinki in Finland.• It was developed under the GNU General Public License,

allowing source code to be freely available.• Each distribution was developed for a particular purpose.• TUX, the penguin, is the official mascot of Linux.

What Is Linux?Linux is an operating system that was initially created as a hobby by Linus Torvalds, a student atthe University of Helsinki in Finland. Torvalds had an interest in Minix, a small UNIX system,and decided to develop a system that exceeded the Minix standards. He began his work in 1991when he released version 0.02, and worked steadily until 1994 when version 1.0 of the Linuxkernel was released.

Linux is developed under the GNU General Public License and its source code is freelyavailable to everyone. As a result, a number of companies, organizations, and individuals havedeveloped their own “versions” of the Linux operating system, known as distributions.

Each distribution, with associated programs and utilities, was developed for a particular purpose— for example, on computers that receive heavy traffic (such as Web page servers),where security is a priority, or on top of an existing operating system (such as Windows) so that

people can try out Linux under familiar conditions.

Although Linux is technically only the kernel, it is commonly considered to be all of theassociated programs and utilities of a distribution.

Linux has an online manual containing descriptions for all commands (see the man utility).

Page 171: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 171/230Oracle SOA Suite 11 g : Essential Concepts B - 3

Copyright © 2009, Oracle. All rights reserved.

What Is Oracle’s Strategy for Linux?

The following distributions are certified and supported by

Oracle:• Red Hat Enterprise Linux AS and ES• UnitedLinux, which includes the following products from

Conectiva, SCO, SuSE, and TurboLinux: – Conectiva Linux Enterprise Edition powered by UnitedLinux – SCO Linux Server 4.0 powered by UnitedLinux – SuSE Linux Enterprise Server 8 (SLES 8) powered by

UnitedLinux – TurboLinux Enterprise Server 8 powered by UnitedLinux

What Is Oracle’s Strategy for Linux?Oracle is fully committed to supporting the Linux operating system. In fact, Oracle was the firstcommercial database available on Linux. By supporting Linux with Oracle’s industry-leading

products, Oracle Corporation enables customers to deploy enterprise-class solutions on the leastexpensive hardware and operating system infrastructure. With technical contributions to enhanceLinux, with direct support of the key Linux operating systems, and with strategic partnerships,Oracle is offering an Unbreakable Linux platform for customers to safely deploy Linux in amission-critical environment. Oracle’s delivery of a complete solution, including direct technicalsupport of the operating system, is critical to the customer’s success.

Red Hat Enterprise Linux AS, version 2.1

Red Hat has been working with Oracle Corporation to provide a more reliable and scalable platform for enterprise Linux users, which resulted in Linux AS, version 2.1. It includes many ofthe same packages as Red Hat 7.2, but also includes enhancements for enterprise features.

UnitedLinux

UnitedLinux is the result of a consortium of Linux vendors. It is based on the SuSE kernel andsupports asynchronous input/output.

Page 172: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 172/230Oracle SOA Suite 11 g : Essential Concepts B - 4

Copyright © 2009, Oracle. All rights reserved.

File System and Basic Directory Structure

In Linux, there are directories, subdirectories, and files—but

everything is just a file.

File System and Basic Directory StructureEvery Linux user has a login username and password. Each user is provided with a separateworkspace. In Linux, there are directories, subdirectories, and files; but everything is just a file.Some key directories are:

• /bin : The /bin directory contains programs, also known as binary files.• /boot : The /boot directory contains the Linux kernel.• /dev : The /dev directory contains the devices that your system uses or can use.

Everything is considered a file in Linux, so your hard disk is kept track of as a file that sitsthere. Your hard drive will be known as /dev/hda .

• /etc : The /etc directory contains most of the configuration files for Linux.• /lib : The /lib directory contains library files. Linux stores library files here for

systemwide shared access to libraries.• /root : The /root directory is a restricted area for all users except those with root

privileges. The root privilege allows users to perform all system functions. See the sucommand for instructions on obtaining root privileges.

• /sbin : The /sbin directory contains programs (binary files) used by root .• /tmp : The /tmp directory is used to store temporary files.

Page 173: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 173/230Oracle SOA Suite 11 g : Essential Concepts B - 5

File System and Basic Directory Structure (continued)• /usr : The /usr directory contains files and programs that are used by all users on the

system.• /var : The /var directory is for certain files that may change their sizes (that is, variable

size)—for example, databases or incoming email from an email server.

Page 174: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 174/230Oracle SOA Suite 11 g : Essential Concepts B - 6

Copyright © 2009, Oracle. All rights reserved.

Shell Commands

• Environment-based commands

• Information-based commands• File system commands• Common vi editing commands• Common FTP communication commands• Archive utilities

Shell CommandsAll operating systems use a shell to get commands from the keyboard to the computer. The most

popular shell used for Linux is the bash shell; bash means “Bourne Again Shell.” It is a freeversion of the Bourne shell.

For quick reference, the commands are divided as follows:• Environment-based commands• Information-based commands• File system commands• Common vi editing commands• Common FTP communication commands• Archive utilities

Page 175: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 175/230Oracle SOA Suite 11 g : Essential Concepts B - 7

Copyright © 2009, Oracle. All rights reserved.

Environment-Based Commands

• date

• df• du• echo• env• exit• export• free

• ifconfig

• kill• login• logout• ps• su• top• uname

Environment-Based CommandsThe usage for environment-based commands is as follows:

• date : Display current date and time- Usage: date

• df : Display disk space used and available for each file system- Usage: df

• du : Display disk space usage for each file of the current directory- Usage: du

• echo : Print a line of text – used to display an environment variable setting- Usage: echo $ORACLE_HOME (displays the setting for the ORACLE_HOME

environment variable)• env : Display all environment variable settings

- Usage: env• exit : Log out from a session (see also the su command)

- Usage: exit

Page 176: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 176/230Oracle SOA Suite 11 g : Essential Concepts B - 8

Environment-Based Commands (continued)• export : Set environment variables

- Usage: export ORACLE_HOME=/home/oracle/infra (sets theORACLE_HOMEenvironment variable)

• free : Display amount of free and used memory- Usage: free

• ifconfig : Show the network status- Usage: ifconfig

• kill : Stop a process (see also the ps command)- Usage: kill –9 pid (where pid is the process ID)

• login : Log in to a system and change the environment to the login user- Usage: login (You are prompted for the username to log in with.)

• logout : Log out of the system- Usage: logout

• ps : Show currently running processes- Usage: ps –ef | grep keyword (displays all processes containing keyword )

• su : Modify user and group ID- Usage: su root (You are prompted for the root password to have root privileges.)• top : Display top CPU processes

- Usage: top (Use “q” to quit the display.)• uname : Print system information

- Usage: uname –a (to print all system information)

Page 177: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 177/230Oracle SOA Suite 11 g : Essential Concepts B - 9

Copyright © 2009, Oracle. All rights reserved.

Information-Based Commands

• >

• >>• |• cat• diff• file• find

• grep

• info• less• ls• man• more• pwd

Information-Based CommandsThe usage for information-based commands is as follows:

• > : Redirect output- Usage: ls > filename (lists all files in a directory and writes them to a file called

filename . If filename already exists, the contents are overwritten, otherwise a new fileis created.)

• >> : Append contents- Usage: ls >> filename (The output is written to the end of filename . If filename

does not already exist, it is created.)• | : A “pipe” for redirecting the output of a command to another command

- Usage: ps –ef | grep keyword (displays all processes containing keyword )• cat : Concatenate files and print on standard output

- Usage: cat filename (displays the contents of filename to the screen)• diff : Find the differences between two files

- Usage: diff file1 file2 (displays the difference between file1 and file2)• file : Determine file type

- Usage: file filename (displays the file type—for example, text or executable)

Page 178: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 178/230Oracle SOA Suite 11 g : Essential Concepts B - 10

Information-Based Commands (continued)• find : Find files

- Usage: find –name *oracle* (finds all files containing “oracle”)find –mmin –10 (finds all files created in the last 10 minutes)

• grep : Find words in files- Usage: grep –ir ‘oracle’ filename (searches for “oracle” in filename ,

ignoring case [the –i directive] and searching directories [the –r directive])• info : Provide information on a specified topic

- Usage: info ls (displays an information page with multiple topic nodes)- Del/Space (moves to the previous/next page within the current topic)- n/p (moves to the next/previous topic node)- m topicname (moves to a specific topic)

• less : Display contents of a file, allowing backward and forward scrolling- Usage: less filename (Use “f” to move forward, “b” to move backward, and “q” to

quit.)- diff file1 file2 | less (displays the difference between two files and pipe the results

through “less”)• ls : List storage (that is, display the contents of the current directory)- Usage: ls –al (lists all files in the current directory)

ls –al *html (lists all HTML files in the current directory)• man : Display a manual page

- Usage: man find (displays the manual for the find command)• more : Display contents of a file

- Usage: more filename (uses SPACE to move forward and “q” to quit.)ls –al | more (lists the directory and pipe the results through more )

• pwd : Print working directory

- Usage: pwd (shows the full path of the current directory)

Page 179: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 179/230Oracle SOA Suite 11 g : Essential Concepts B - 11

Copyright © 2009, Oracle. All rights reserved.

File System Commands

• cd

• chmod• chown• cp

• mkdir

• mv• rm• rmdir

File System CommandsThe usage for file system commands is as follows:

• cd : Change directory- Usage: cd /dir/files (changes into the /dir/files directory)- cd directoryname (changes into the directoryname directory located under the

current directory)- cd ../directoryname (changes into the directoryname directory located above the

current directory)• chmod : Change the permissions on a file or directory

- Usage: chmod 7777 filename (grants read, write, and execute permissions to allusers accessing filename ; computes the octal number as follows: read (4), write (2),execute (1) and identifies the user’s access positionally, through the letters “ugoa”where (u) is the user who owns it, (g) is for other users in the file’s group, (o) is forother users not in the file’s group, or (a) for all users)

Page 180: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 180/230Oracle SOA Suite 11 g : Essential Concepts B - 12

File System Commands (continued)• chown : Change the owner or group for a file

- Usage: chown owner:group filename (changes the owner and group of filename tothe current user)

• cp : Copy files- Usage: cp file ../newFile (copies file into the directory above the current directory

and renames it as newFile )• mkdir : Make directory

- Usage: mkdir newdir (makes a new directory newdir under the current directory)- mkdir /usr/ newdir (makes a new directory newdir under the /usr directory)

• mv : Move (rename) files- Usage: mv oldName newName (renames oldName as newName )

• rm : Remove files- Usage: rm filename (removes filename from the current directory)- rm *old (removes all files ending in “old”)

• rmdir : Remove directories

- Usage: rmdir directoryname (removes directoryname from the current directory)

Page 181: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 181/230Oracle SOA Suite 11 g : Essential Concepts B - 13

Copyright © 2009, Oracle. All rights reserved.

Common vi Editing Commands

vi is a full-screen text editor with two modes:

• Input mode: Text is entered in the document by inserting orappending.

• Command mode: You can move within the document andmerge, search, and cut lines.

Common vi Editing CommandsThe vi program is a full-screen text editor, which has two modes:

• Input mode: Text is entered in the document by inserting or appending.• Command mode: You can move within the document and merge, search, and cut lines.

Common vi Commands• ESC : Exits input mode and puts you in command mode• h , j , k , l : Left, down, up, right (or use the arrow keys)• w , W, b , B: Forward, backward by word• 0 , $ : First, last position of current line• /pattern : Search forward for pattern.• ?pattern : Search backward for pattern.• n ,N: Repeat last search in the same, opposite direction.• x : Delete character.• dd : Delete current line.• D : Delete to end of line.• dw : Delete word.• p , P: Put deleted text before, after cursor.• u : Undo the last command.• . : Repeat the last command.

Page 182: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 182/230Oracle SOA Suite 11 g : Essential Concepts B - 14

Common vi Editing Commands (continued)• i , a : Insert text before, after cursor (puts you into input mode).• o , O: Open new line for text below, above cursor (puts you into input mode).• ZZ : Save file and quit.• :w : Save file.• :q! : Quit, without saving changes.

Page 183: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 183/230Oracle SOA Suite 11 g : Essential Concepts B - 15

Copyright © 2009, Oracle. All rights reserved.

Common FTP Communication Commands

To shut off or turn on promptingprompt

To put multiple WAR files on FTP sitemput *warTo get multiple JAR files from FTP site

mget *jar

To put a file on the FTP siteput filename

To get a file from the FTP siteget filename

type ascii

type binary

ftp hostname.com

Command

To connect to hostname.com

To set the type for ASCII files

To set the type for binary files

Description

Complete FTP Communication CommandsThe complete list of FTP commands is as follows:

• ! : Escape to the shell.• ? : Print local help information.• append : Append to a file.• ascii : Set the ASCII transfer type.• bell : Beep when command is completed.• binary : Set the binary transfer type.• bye : Terminate the FTP session and exit.• cd : Change the remote working directory.• close : Terminate the FTP session.• delete : Delete the remote file.• debug : Toggle debugging mode.• dir : List contents of the remote directory.• disconnect : Terminate the FTP session.• get : Receive the file.• glob : Toggle metacharacter expansion of local file names.• hash : Toggle printing `#' for each buffer transferred.• help : Print local help information.

Page 184: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 184/230Oracle SOA Suite 11 g : Essential Concepts B - 16

Complete FTP Communication Commands (continued)• lcd : Change the local working directory.• literal : Send arbitrary FTP command.• ls : List contents of the remote directory.• mdelete : Delete multiple files.• mdir : List contents of multiple remote directories.• mget : Get multiple files.• mkdir : Make a directory on the remote machine.• mls : List contents of multiple remote directories.• mput : Send multiple files.• open : Connect to the remote TFTP.• prompt : Force interactive prompting on multiple commands.• put : Send one file.• pwd : Print the working directory on the remote machine.• quit : Terminate the FTP session and exit.• recv : Receive the file.

• remotehelp : Get help from the remote server.• rename : Rename the file.• rmdir : Remove the directory on the remote machine.• send : Send one file.• status : Show the current status.• trace : Toggle packet tracing.• type : Set the file transfer type.• user : Send new user information.• verbose : Toggle verbose mode.

Page 185: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 185/230Oracle SOA Suite 11 g : Essential Concepts B - 17

Copyright © 2009, Oracle. All rights reserved.

Archive Utilities

The following archive utilities are available for Linux:

• tar• gzip and gunzip• bzip2 and bunzip2• zip and unzip

Archive UtilitiesThe following archive utilities are available for Linux:tartar stands for tape archive and was originally designed for tape backups, but is used to create atar file anywhere on the file system. The tar utility creates one “tar file” (also known as a“tarball”) out of several files and directories. A tar file is not compressed. It is just a heap of filesassembled together in “one container.” So, the tar file takes up the same amount of space as allthe individual files combined, plus a little extra. A tar file can be compressed by using gzip orbzip2 .

The following are some examples:• tar -cf backup.tar /home/ftp/pub : Creates a tar file named backup.tar

from the contents of the /home/ftp/pub directory• tar -tvf example.tar : Lists the contents of example.tar to the screen• tar -xvf example.tar : Extracts the contents of example.tar and displays the

files as they are extracted• tar -zxvpf my_tar_file.tar.gz : Unzips the tar file and then extracts the

contents

Page 186: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 186/230Oracle SOA Suite 11 g : Essential Concepts B - 18

Archive Utilities (continued)The options are defined as follows:

• -c : Create an archive.• -f : Use the file in question (required option).• -p : Preserve dates, permissions of the original files• -t : List the contents of an archive.• -v : Verbose (that is, tar informs you what files it is extracting)• -x : Extract files from the tarball.• -z : Unzip the file first.

gzip and gunzipThe gzip utility compresses a tar file, reducing the amount of space required to store thearchived tar file. The gunzip utility (or gzip –d ) expands (decompresses) the gzip file.gunzip recognizes the special extensions .tgz and .taz as shorthands for .tar.gz and.tar.Z , respectively. The following are some examples:

• gzip my_tar_file.tar : Compresses the tar file and renames it with a .gzextension

• gzip -d my_tar_file.tar.gz : Zips the tar file• gunzip my_tar_file.tar.gz : Unzips the tar file

bzip2 and bunzip2The bzip2 utility compresses files by using the Burrows-Wheeler block sorting textcompression algorithm and Huffman coding. Compression is generally considerably better thanthat achieved by more conventional compressors. The bunzip2 utility (or bzip2 –d )decompresses a bzip2 file.

The following are some examples:• bzip2 * : Compresses each file in the current directory and renames the file with a .bz2

extension• bunzip2 my_file.bz2 : Decompresses the my_file.bz2 file• bzip2 –d my_file.bz2 : Decompresses the my_file.bz2 file

zip and unzipzip is a compression and file-packaging utility for UNIX, VMS, MS-DOS, OS/2, Windows NT,Minix, Atari and Macintosh, Amiga, and Acorn RISC OS. It is compatible with PKZIP (PhilKatz’s ZIP for MS-DOS systems). The companion program “unzip” unpacks zip archives. Thezip and unzip utilities can work with archives produced by PKZIP, and PKZIP and PKUNZIPcan work with archives produced by zip.

The zip program puts one or more compressed files into a single zip archive, along withinformation about the files (name, path, date, time of last modification, protection, and checkinformation to verify file integrity). An entire directory structure can be packed into a ziparchive with a single command. Compression ratios of 2:1 to 3:1 are common for text files.

The following are some examples:• zip my_files * : Creates a compressed file named my_files.zip , containing all

the files in the current directory• unzip my_files.zip : Expands the zip file within the current directory

Page 187: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 187/230Oracle SOA Suite 11 g : Essential Concepts B - 19

Copyright © 2009, Oracle. All rights reserved.

Shortcuts and Tips

• Case-sensitivity

• The clear utility• Shift + Page Up/Page Down• Tab• Color coding• The touch utility

• Web sites

Shortcuts and Tips• Linux is a case-sensitive operating system. You must enter the case correctly.• In the terminal window, to clear the contents, enter clear .• To scroll up, press Shift + Page Up.• To scroll down, press Shift + Page Down.• Press Tab to complete the remainder of the text. (Linux beeps to let you know that is as far

as it can complete the text; you now need to add more characters to resolve ambiguities.)• When you enter ls –al , the result is color coded. Blue is for directories.• To create a file, enter touch filename . If the file name does not exist, it gets created. If

the file name already exists, touch alters its time stamp to the current time. Note that, inLinux, you cannot easily name files with spaces in them, therefore, you must useunderscores or a capital letter to separate words. For example, “ touch my file” does notwork. You must write either “ touch myFile” or “ touch my_file.” This applies tocreating directories as well.

• The following are helpful Linux Web sites:- www.oracle.com/linux- www.linux.org- www.linux.com- www.redhat.com

Page 188: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 188/230

Page 189: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 189/230

Copyright © 2009, Oracle. All rights reserved.

Perform Common Tasks with OracleJDeveloper

Page 190: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 190/230

Page 191: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 191/230Oracle SOA Suite 11 g : Essential Concepts C - 3

Copyright © 2009, Oracle. All rights reserved.

Create a Database Connection

Step 1 of 3: Type

Step 2 of 3: Create

Step 3 of 3: View

Create a Database ConnectionTo access your Oracle XE Database from Oracle JDeveloper, you must first create a connection

by performing the following steps:1. From the File menu select New. In the New Gallery window, click the General tab and

select Connections. In the Items list, select Database Connection2. In the Create Database Connection dialog box, enter the following configuration details:

- Connection Name: soademoDatabase- Connection Type: Oracle (JDBC)- Username: system- Password: oracle- Save Password: Checked- Enter Custom JDBC URL: Unchecked- Driver: thin- Host Name: localhost- JDBC Port: 1521 (or the port number of your database)- SID: XE (or the SID of your database)

3. After you have entered the configuration details, test the database connection by clickingthe Test Connection button.

Page 192: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 192/230Oracle SOA Suite 11 g : Essential Concepts C - 4

Copyright © 2009, Oracle. All rights reserved.

Create an Application Server Connection

Step 1 of 7

Step 2 of 7: Type

Step 3 of 7: Authentication

Create an Application Server ConnectionYou need to create a connection from JDeveloper to the Oracle WebLogic Server configured forOracle SOA Suite in order to deploy from JDeveloper. The Application Server connection can

be created by performing the following steps:1. Select New from the File menu. In the New Gallery, in the Categories tree, select General,

and then Connections. Select Application Server Connection, and click OK. The CreateApplication Server Connection Type page is displayed.

2. Enter WLS_AppserverConnection in the Connection Name field and select WebLogic 10.3from the Connection Type list, and click Next.

3. Enter the WebLogic Server username and password. Click Next. The Configuration Pageis displayed.

Page 193: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 193/230Oracle SOA Suite 11 g : Essential Concepts C - 5

Copyright © 2009, Oracle. All rights reserved.

Create an Application Server Connection

Step 4 of 7: Configuration Step 5 of 7: Test

Step 6 of 7: Completion

Step 7 of 7: View

Create an Application Server Connection (continued)The Connection Authentication page is displayed

4. Enter the following values in the Configuration page:- WebLogic Hostname (Administration Server): localhost- Port: 7001- WLS Domain: soabam_domain (or the appropriate domain name for the

environment)Click Next. The Test page is displayed.

5. Click Test Connection. The Finish page is displayed.6. If the status is successful, click Finish.7. View the results.

Page 194: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 194/230Oracle SOA Suite 11 g : Essential Concepts C - 6

Copyright © 2009, Oracle. All rights reserved.

Create an Application

Step 1 of 3 Step 2 of 3

Create an ApplicationStart the Create Application Wizard by doing the following:

a. Select New from the File menu. b. In the New Gallery, in the Categories tree, select General, and then select Generic

Application under Items. This invokes the Create Application Wizard.

To use the wizard, do the following:1. Specify the application name and the directory under which it needs to be created. Click

Next.2. The project name page is displayed. Specify the project name and select the type of project

that you want to create. In the slide, the project type selected is SOA. Click Next.

Page 195: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 195/230

Page 196: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 196/230Oracle SOA Suite 11 g : Essential Concepts C - 8

Copyright © 2009, Oracle. All rights reserved.

Create an Empty Project

1

2 3

Create an Empty ProjectTo create a project:

1. Select New from the File menu. In the New Gallery select Projects under the Generalcategory and Generic Project from the Items tab.This invokes the Create Generic Projectwizard.

2. Specify the Project name and the directory under which you want to create the same, andspecify the type of Project that you want to create. Click Next.

3. Based on the type of project you chose, you will be prompted to specify the settings. Afteryou have completed, click Finish.

Page 197: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 197/230Oracle SOA Suite 11 g : Essential Concepts C - 9

Copyright © 2009, Oracle. All rights reserved.

Create an SOA Project

1

2 3

Create an SOA ProjectTo create an SOA project:

1. Select New from the File menu. In the New Gallery, select Projects under the Generalcategory and then SOA Project from the Items tab. This invokes the Create SOA Projectwizard.

2. Specify the Project name and the directory under which you want to create the same, selectSOA from the Project Technologies tab, and then click Next.

3. Specify the Composite Template. Click Finish.

Page 198: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 198/230Oracle SOA Suite 11 g : Essential Concepts C - 10

Copyright © 2009, Oracle. All rights reserved.

Create a Project from Existing Sources

1

2

Create a Project from Existing SourcesTo create a project from an existing source:

1. Select New from the File menu. In the New Gallery, select “Projects from ExistingSource” under the General category, and then Click OK. This invokes the “Create Projectfrom Existing Source” wizard.

2. Specify the project name and the directory under which you want to create the same.

Page 199: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 199/230Oracle SOA Suite 11 g : Essential Concepts C - 11

Copyright © 2009, Oracle. All rights reserved.

Create a Project from Existing Sources

3

4

Create a Project from Existing Sources (continued)3. Specify the source path and the output directory. Click Next.4. Specify the Libraries that need to be added. Click Next.5. After you have completed, click Finish.

Page 200: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 200/230Oracle SOA Suite 11 g : Essential Concepts C - 12

Copyright © 2009, Oracle. All rights reserved.

Create a Project from Existing Sources

5

Create a Project from Existing Sources (continued)The wizard creates the project and the selected files.

Page 201: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 201/230Oracle SOA Suite 11 g : Essential Concepts C - 13

Copyright © 2009, Oracle. All rights reserved.

Deploy an SOA Composite Application

Deploy an SOA Composite Application1. In the Application Navigator, select the project from Projects.

2. Right-click the project and select Deploy. Specify the Application Server on which youwant your project to be deployed.

Page 202: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 202/230Oracle SOA Suite 11 g : Essential Concepts C - 14

Copyright © 2009, Oracle. All rights reserved.

Deploy an SOA Composite Application

Deploy an SOA Composite Application (continued)3. Choose the target server.4. Specify a new revision ID or check the “Overwrite any composite with the same revision

ID” check box. Click OK.5. If this is a first-time deployment, or if the connection is timed out, you are prompted for

the Admin username and password.6. On successful compilation, “Build successful” is displayed in the SOA log.

Page 203: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 203/230Oracle SOA Suite 11 g : Essential Concepts C - 15

Copyright © 2009, Oracle. All rights reserved.

Summary

In this lesson, you should have learned how to:

• Create a database connection• Create an application server connection• Create an application• Create an empty project• Create an SOA project• Create a project from existing sources• Deploy an SOA composite application

Page 204: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 204/230

Page 205: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 205/230

Copyright © 2009, Oracle. All rights reserved.

SOA Adoption Planning Principles

Page 206: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 206/230Oracle SOA Suite 11 g : Essential Concepts D - 2

Copyright © 2009, Oracle. All rights reserved.

Objectives

After completing this lesson you should be able to:

• Describe the SOA adoption planning activities• Identify the need for an SOA Reference Architecture• Understand the stages in the development of the SOA

Reference Architecture

Page 207: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 207/230Oracle SOA Suite 11 g : Essential Concepts D - 3

Copyright © 2009, Oracle. All rights reserved.

SOA Adoption

• SOA adoption will require most companies to change their

business model, which requires a matching modification oftheir technology infrastructure.

• In order to overcome the barriers and challenges to SOA,a well-structured SOA organizational governance needs tobe established.

SOA AdoptionAs many enterprises seek to expand their SOA initiative, there are fundamental issues that must

be considered in SOA adoption planning. Businesses continue to struggle with the issue of bridging the business and IT gap. SOA can help bridge that gap by focusing on delivering business services that the business can understand, rather than programs and systems. The focuson services delivering business functionality assist in aligning business and IT.

The benefits of SOA do not come automatically and there are a number of areas and disciplinesthat need to be addressed. These areas include developing and executing an SOA strategy,understanding and managing the demands that a shared infrastructure brings, and understandingthe organizational commitments required for SOA to deliver the benefits that it extols. Ifenterprises do not address these demands, then they will encounter a number of challenges inexecuting their SOA program.

Page 208: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 208/230Oracle SOA Suite 11 g : Essential Concepts D - 4

Copyright © 2009, Oracle. All rights reserved.

SOA Adoption Planning Activities

• Getting and sustaining commitment

• Driving measurable adoption through the SOA program• Leveraging the technology• Defining a phased change approach

SOA Adoption Planning ActivitiesThe various SOA adoption planning activities can be discussed as follows:

• Getting and sustaining commitment: This activity involves:- Completing the stakeholder community- Moving through the change curve- Sustaining focus through “line-of-sight” goals

• Driving measurable adoption through the SOA program: This activity involves:- Establishing a governance model- Generating pipeline and milestone delivery- Using metrics to accelerate adoption and ensure “line-of-sight” goals

• Leveraging the technology: This activity involves the following:- Ensuring SOA capabilities will continue to enable business innovation- Providing tools and processes will improve ease of use and drive adoption- Emphasizing the need for an SOA Reference Architecture for the entire enterprise

Page 209: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 209/230Oracle SOA Suite 11 g : Essential Concepts D - 5

Copyright © 2009, Oracle. All rights reserved.

SOA Adoption Planning Activities: Completingthe Stakeholder Community

In order to reach out to all stakeholders to achieve a greater

level of compliance, you need to prioritize the following actions:• Complete stakeholder mapping and define roles and

responsibilities• Ensure that stakeholders understand that driving and

enforcing may be needed• Raise the stakes to help people through the change• Ensure that a consumer group is established to work as

part of wider SOA team

SOA Adoption Planning Activities: Completing the Stakeholder CommunityIn order to reach out to all stakeholders, the stakeholder community must include consumer

personnel equally with IT delivery personnel. Executives need to understand that their role is toenforce and drive transformation to SOA as much as its support. The consumer group that isestablished needs to work as a part of the SOA team in order to identify services and map tocapabilities. In addition, if the key leadership of an organization is only supporting the SOAinitiative, it is destined to fail. In fact, a wider and deeper evangelism and commitment isneeded.

Page 210: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 210/230

Page 211: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 211/230Oracle SOA Suite 11 g : Essential Concepts D - 7

Copyright © 2009, Oracle. All rights reserved.

SOA Adoption Planning Activities: Establishing"Line-of-Sight" Goals

To develop the overall strategy, prioritize the following actions:

• Establish guiding principles• Establish measurable “line-of-sight” goals in accordance

with guiding principles• Consider a rewards/enforcement system

SOA Adoption Planning Activities: Establishing "Line-of-Sight" GoalsSOA adoption planning best practices:

• Set pragmatic SOA guiding principles that simply encapsulate the high-level vision• Ensure that “line-of-sight” goals are in place and tracked; explain why this is important• Set bold, aggressive goals whose “line of sight” can be rolled up to the following

principles:- Culture-changing behaviors, quality, and so on- Base measurement and reward systems on these value-adding outcomes

Page 212: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 212/230Oracle SOA Suite 11 g : Essential Concepts D - 8

Copyright © 2009, Oracle. All rights reserved.

SOA Adoption Planning Activities: Establish aMilestone Delivery Plan

In order to establish a Milestone Delivery Plan, prioritize the

following actions:• Perform an analysis of the projects pipeline to show how

using SOA can support these projects• Seek a Chief Technology Officer (CTO) mandate if needed

to use SOA services in these projects• Drive adoption by prioritizing a few “trailblazer” projects to

demo early success

SOA Adoption Planning Activities: Establish a Milestone Delivery PlanThe SOA adoption plan will be overwhelming to most stakeholders if there is no recognizablemilestone delivery plan in place. If a project pipeline is established early on to include these“trailblazer” prototype projects, delivery efforts are likely to be far more successful because ofthe iterative feedback available from implementation successes as well as the failures along theway.

The best practices that can be followed are:• Drive adoption by prioritizing a few “trailblazer” projects to demo early success• Capture results to feed in lessons learned, continue process improvement, and simplify the

adoption level of effort

Page 213: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 213/230Oracle SOA Suite 11 g : Essential Concepts D - 9

Copyright © 2009, Oracle. All rights reserved.

SOA Adoption Planning Activities: Usage ofMetrics

The usage of metrics is vital to understand the progress of SOA

adoption. The actions to be prioritized are:• Decide which metrics will prove SOA benefits/value and

adoption progress• Develop benchmark capabilities and requirements for SOA

adoption to make progress measurement more real• Develop cost/benefit modeling tools to inform future

investment decisions

• Define metadata standards for metrics instrumented intoall SOA assets

SOA Adoption Planning Activities: Usage of MetricsDeveloping a simple “dashboard” to show progress as well as to capture important trends

provides a greater incentive for key stakeholders. The following are best practices that you canfollow:

• Benchmark key metrics now to allow real progress tracking later.• Because service-enabled capabilities are used more widely, it is important to demonstrate

value at the individual service level.• Non-financial benefits, such as reduced time-to-market, shorter release cycles, and the

number of services, are as key as financial benefits.

Page 214: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 214/230Oracle SOA Suite 11 g : Essential Concepts D - 10

Copyright © 2009, Oracle. All rights reserved.

SOA Adoption Planning Activities: EnablingBusiness Innovation

Services that are mapped to business processes are key to the

success of the SOA initiative. In order to ensure that SOAcapabilities continue to enable business innovation, prioritizethe following actions:• Define and enable a service identification process that will

avoid frequent and often costly service version updates• Model business processes going forward to enhance the

prospect of service reuse and enable the business processto the service feedback and optimization loop

SOA Adoption Planning Activities: Enabling Business InnovationThe following are best practices that you need to follow to ensure that SOA capabilities continueto enable business innovation:

• Ensure business user representation in the stakeholder group.• Enhance the prospect of innovation with appropriate service reuse.• Define well understood business/engineering aligned processes to address service

identification, service prioritization, and service granularity.

Page 215: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 215/230Oracle SOA Suite 11 g : Essential Concepts D - 11

Copyright © 2009, Oracle. All rights reserved.

SOA Adoption Planning Activities: Usage of Toolsand Processes

In order to drive SOA adoption, the proper use of tools and

processes is vital. Under this activity, prioritize these actions:• Communicate, educate, and align best practices and

frameworks to consumers by building a referenceapplication

• Standardize on content and document management• Provide processes, tools, and utilities to ease learning and

to enable repeatability

SOA Adoption Planning Activities: Usage of Tools and ProcessesThe following are the best practices that you need to follow to enable the proper use of tools and

processes:• Make common frameworks and other identified patterns standard across IT.• Publish best practices so that consumers approach tasks consistently.• Provide the development and design tools along with the appropriate training and

mentoring to enable the realization of the various methodologies.

Page 216: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 216/230Oracle SOA Suite 11 g : Essential Concepts D - 12

Copyright © 2009, Oracle. All rights reserved.

The Need for an SOA Reference Architecture

• An SOA Reference Architecture defines the target

architecture and the principles to be used by anorganization’s architects to make architecture and designdecisions on their projects.

• An SOA Reference Architecture should include a definedset of relevant IT, industry, and enterprise standards alongwith a glossary establishing a common vocabulary withwhich to discuss a particular problem space and relevantsolutions.

• It should include multiple views, derived from viewpointsaddressing the concerns of many stakeholders (not justother architects).

The Need for an SOA Reference ArchitectureThe SOA Reference Architecture provides a high-level view to a desired outcome on a three-year planning window. This is a “living” document and incremental releases of the SOAReference Architecture will be produced at regular intervals during the execution of an SOAroadmap. The SOA Reference Architecture anchors architectural concepts, links principles andguidelines, and requirements and motivation, to establish a consistent framework for theelaboration of concrete architectures for specific SOA implementations. A critical aspect of anSOA Reference Architecture is to establish a link to business drivers, including relevantmotivation derived from a business plan, in addition to traditional requirements. Other relatedwork, including standards, patterns and so on, is often shared by other enterprise planningartifacts and may not be exclusively within the SOA Reference Architecture itself.

Page 217: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 217/230Oracle SOA Suite 11 g : Essential Concepts D - 13

Copyright © 2009, Oracle. All rights reserved.

Developing the SOA Reference Architecture

Stages in the development of the SOA Reference Architecture:

Align IT withbusiness

Develop abaseline

CreateReference

Architecture

Createinfrastructure

roadmap

Developing the SOA Reference ArchitectureSeveral key individuals will be involved across the various planning and design stages toinclude:

• Business executives (or IT liaisons) provide business drivers for the SOA ReferenceArchitecture

• IT executives provide IT objectives, O&G model, funding model, and project listinformation

• Enterprise architects provide current reality and future vision architecture and roadmapguidance

These activities can be categorized into four general stages:• Align IT with business• Develop a baseline• Create the SOA Reference Architecture• Create the SOA infrastructure roadmap

Page 218: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 218/230Oracle SOA Suite 11 g : Essential Concepts D - 14

Copyright © 2009, Oracle. All rights reserved.

Developing the SOA Reference Architecture:Align IT with Business

The goal at this stage is to fully capture business needs by:

• Gaining an understanding of important business driversthat affect the direction of IT

• Discussing IT objectives with reference to business drivers• Discussing SOA benefits and challenges with higher-level

business executives• Prioritizing SOA benefits based on business and IT drivers

Developing the SOA Reference Architecture: Align IT with BusinessThe primary set of activities involved in this stage include:

• Organizing a kickoff session to plan future activities• Collecting business drivers and IT objectives from all stakeholders• Discussing perceived SOA benefits and challenges• Formalizing, distributing, reviewing, and finalizing the analysis

This first set of activities is used to collect business and IT drivers that affect the SOA ReferenceArchitecture decisions related to the future vision. It also serves to collect benefits andchallenges that management perceives to be associated with SOA. The results are factored intothe SOA Reference Architecture planning sessions and listed in the SOA Reference Architecturedocument.

Page 219: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 219/230Oracle SOA Suite 11 g : Essential Concepts D - 15

Copyright © 2009, Oracle. All rights reserved.

Developing the SOA Reference Architecture:Develop a Baseline

The goal at this stage is to complete an assessment of your

SOA readiness by cataloging and documenting the current:• IT environment, key systems, technologies, and products• SOA initiatives, service developments, and supporting

infrastructure• IT organization, governance, and funding models• Level of support (or resistance) for current SOA initiatives

Developing the SOA Reference Architecture: Develop a BaselineThe primary activities at this stage include:

• Collecting information on enterprise architecture and technology• Collecting information on current and future projects• Producing an SOA assessment and readiness document

The results will establish a baseline for gap analysis. In order to provide a starting point for theSOA infrastructure roadmap, all key stakeholders need to obtain an understanding of the currentstate of IT. An assortment of activities may be used to properly document information on thecurrent enterprise architecture, infrastructure, technologies, and products, as well as ITorganizational structures, governance, and project funding models. This stage involves all keystakeholders, with extra emphasis on the technical staff and enterprise architects, as mostinformation gathered pertains to areas of technology. A document that provides the assessment,readiness, and “current-state” of the organization is produced, which is later used as a starting

point for the infrastructure roadmap.

Page 220: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 220/230Oracle SOA Suite 11 g : Essential Concepts D - 16

Copyright © 2009, Oracle. All rights reserved.

Developing the SOA Reference Architecture:Create SOA Reference Architecture

The goal of this stage is to:

• Leverage collective thought leadership to define yourorganization’s future SOA vision

• Document the vision as your SOA Reference Architecture

Developing the SOA Reference Architecture: Create SOA Reference ArchitectureThe primary activities at this stage include:

• Training or mentoring employees with less SOA experience• Developing planning sessions to specify future vision architecture, principles, guidelines,

infrastructure, technologies, products, and so on• Formalizing, distributing, reviewing, and finalizing the complete vision document which

becomes the enterprise’s SOA Reference Architecture

The goal is to establish an SOA Reference Architecture for the organization, aligned with business strategy and drivers to guide future projects toward a common SOA vision. The SOAReference Architecture is a higher level of abstraction than ordinary project architectures, as it ismeant to provide guidance to all projects as opposed to being a specification for any one project.The SOA Reference Architecture represents a desired future vision, approximately two to threeyears into the future.

Page 221: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 221/230Oracle SOA Suite 11 g : Essential Concepts D - 17

Copyright © 2009, Oracle. All rights reserved.

Developing the SOA Reference Architecture:Create SOA Infrastructure Roadmap

The goal at this stage is to:

• Provide an incremental plan for achieving the future vision• Synergize efforts with current and future projects

Developing the SOA Reference Architecture: Create SOA Infrastructure RoadmapThe primary activities at this stage include:

• Performing the gap analysis relative to your current baseline• Reviewing projects for infrastructure build-out and infrastructure services construction• Mapping gaps, projects, and deliverables to roadmap phases• Producing the SOA infrastructure roadmap and distributing it to all relevant stakeholders

It is important to provide a roadmap to plan the build-out of SOA infrastructure, for example,infrastructure assets, such as service bus, registry, and security products, and commoninfrastructure services, such as security, logging, and error handling services. Certain legacyapplication access services may also be included, as appropriate. The roadmap includes one tothree current or future projects identified for deployment on the SOA infrastructure in theroadmap planning horizon.

The roadmap helps to drive agility through the specification of standards-based development andcommon reusable interfaces and helps to maximize the flexibility and reusability of existingapplications and infrastructure.

The roadmap helps both to realize reliability, scalability, availability, and security across theenterprise and to enable the on-going management of the SOA Reference Architecture andoverall SOA initiative.

Page 222: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 222/230Oracle SOA Suite 11 g : Essential Concepts D - 18

Copyright © 2009, Oracle. All rights reserved.

SOA Governance Model

It is important for an organization to have an SOA Governance

model in place, in order to :• Maximize the reuse of services• Minimize the duplication of business functionality in

services• Maximize the business value of services• Maximize the efficiency of creating new services or

modifying existing services

• Define the available services and their functionality• Clearly state what services are available and what

functions they perform

Page 223: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 223/230Oracle SOA Suite 11 g : Essential Concepts D - 19

Copyright © 2009, Oracle. All rights reserved.

Example of an SOA Governance Model

SOA Steering CommitteeExecutive Sponsorship Vision and Strategy

SOA Architecture GroupExecute Vision and StrategyDefine and Provide Guidance

SOA Architecture AndAdvisory Team

Service Engineering

Service FunctionalAnalyst

Service Requirements

Service DevelopmentTeam

Service Development

Example of an SOA Governance ModelThe slide describes an example of an SOA Governance Model consisting of the followingstructures:

• SOA Steering Committee: It comprises the executive stakeholders in IT delivery and provides the overall guidance for SOA adoption, including the prioritization of investmentin services and the funding of the delivery of those services and the shared infrastructureon which they operate.

• SOA Architecture Group: This group is responsible for setting the overall technicaldirection for SOA adoption and for measuring compliance against that direction as servicesare delivered.

• SOA Architecture and Advisory Team: This group provides the function of spottingopportunities for building or harvesting services, for advertising the availability of servicesto enterprise constituent, and for monitoring compliance in the use of services.

• Service Functional Analyst: This group seeks to provide the link between business needsand IT development project proposals, specifically business service capabilities anddefinitions.

• Service Development Team: This group is chartered with developing services that areinfrastructural in nature and that benefit the entire customer organization, spanning all ofits business units.

Page 224: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 224/230Oracle SOA Suite 11 g : Essential Concepts D - 20

Copyright © 2009, Oracle. All rights reserved.

Summary

In this lesson, you should have learned how to:

• Describe the SOA adoption planning activities• Identify the need for an SOA Reference Architecture• Understand the stages in the development of the SOA

Reference Architecture• Define the need of SOA Governance Model

Page 225: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 225/230

Glossary

ADF BC: Application Development Framework Business Components

APS: Application Platform Suite. A comprehensive and integrated enterprise application

infrastructure.

BPEL: Business Process Execution Language. An XML-based language designed to

enable task sharing for a Service-Oriented Architecture environment, even across

multiple organizations, by orchestrating and choreographing individual Web

services.

BPEL4WS: Business Process Execution Language for Web Services

Component: A modular unit of functionality accessed through one or more interfaces.

CORBA: Common Object Requesting Broker Architecture. A set of industry standards

published by OMG that defines a distributed model for object application

systems.

CRM: Customer Relationship Management. A broad term that covers concepts used by

companies to manage their relationships with customers, including the capture,

storage, and analysis of customer information.

DAS: Data Access Service. A Java class that provides methods to load a data graph from

a data store and to save a data graph back into that data store.

DCOM: Distributed Component Object Model. A proprietary Microsoft technology for

communication among software components distributed across networked

computers.

EAI: Enterprise Application Integration. Refers to the plans, methods, and tools aimed at

modernizing, consolidating, and coordinating the computer applications in an

Page 226: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 226/230

Oracle SOA Suite 11g: Essential Concepts Glossary - 2

enterprise. EAI may involve developing a total new view of an enterprise's

business and its applications, seeing how existing applications fit into the new

model, and then devising ways to efficiently reuse what already exists while

adding new applications and data.

EDL: Event Definition Language.

EDSOA: Event Driven Service Oriented Architecture. An architecture that combines

SOA’s request-response and Event-Driven Architecture’s (EDA) event publish-

subscribe paradigms.

EJB: Enterprise Java Bean. Defines a Java API for server-side enterprise components

that execute within a J2EE-compliant applicant server. The specification alsodetails remote communication protocols, persistence, transactions, concurrency

control, naming services, and deployment descriptors.

ETL: Extract Transform Load. The processes that enable companies to move data from

multiple sources, reformat and cleanse it, and load it into another database, a data

mart, or a data warehouse for analysis, or onto another database, a data mart, or a

data warehouse for analysis, or onto another operational system to support a

business process.

IAAS: Information as a Service

IIOP: Internet Inter-ORB Protocol. An open-standard protocol published by OMG to be

used for communication in CORBA-based systems.

JAM: Java Applications Manager. Enables launching Java Applications.

JAXB: Java Architecture for XML binding. Provides a convenient way to process XMLcontent using Java objects by binding its XML schema to Java Representation.

JCA: Java Connector Architecture. A J2EE-based technology standard for connecting

application servers and enterprise information systems (EIS).

Page 227: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 227/230

Oracle SOA Suite 11g: Essential Concepts Glossary - 3

JMS: Java Messaging Services. A Java API for interacting with messaging-based

systems. The API supports both the point-to-point (and queuing) and

publish/subscribe interaction models. It is the primary standard to provide a

reliable foundation for loosely coupled, asynchronous messaging within a

distributed environment.

LOB: Line of Business

Mashup: Web page or application that combines data or functionality from two or more

external sources to create a new service

MDS: Metadata Service Repository. It is a critical component of SOA, providing a

shared location to manage metadata and govern the asset life cycle.

MOM: Message-Oriented Middleware. The term for application communication

software that connects systems in a network by carrying and distributing

messages between them. The messages may contain data and/or software

instructions. MOM infrastructure is typically built around a queuing system that

stores messages pending delivery and keeps track of whether and when each

message has been delivered.

MTOM: Message Transmission Optimization Mechanism. It is a method of efficiently

sending binary data to and from Web services.

OASIS: Organization for the Advancement of Structured Information Standards. An

international consortium that drives the development, convergence, and adoption

of e-business standards. The consortium produces Web services standards and

standardization efforts in the public sector and for application-specific markets.

Portlet: Pluggable user interface software components that are managed and displayed in

Web portals.

REST: Representational State Transfer. A collection of network architecture principles

that outline how resources are defined and addressed.

Page 228: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 228/230

Oracle SOA Suite 11g: Essential Concepts Glossary - 4

RFID: Radio Frequency Identification

RMI: Remote Method Invocation. A RPC protocol published for accessing Java object

methods remotely within a distributed application system.

ROI: Return On Investment. A performance measure used to evaluate the efficiency of

an investment or to compare the efficiency of a number of different investments.

RPC: Remote Procedure Call. A protocol used in the client-server model that allows one

application (the client) to request a service from another application (the server)

located on another computer in a network without having to understand network

details.

SCA: Service Component Architecture

Schematron: A rules-based XML Schema language that uses XPath expressions to

describe validation rules.

SDO: Service Data Objects. A data programming architecture and API for the Java

platform that unifies data programming across data source types (relational

databases, entity EJB components, XML sources, Web services, JCA, JSP),

provides robust support for common application patterns, and enables

applications, tools, and frameworks to move easily, query, view, bind, update, and

introspect data.

SLA: Service-Level Agreement. A contract between a service provider and a service

requester that stipulates a specified level of service. An SLA could contain

agreements on support options, enforcement or penalty provisions for services not

provided, a guaranteed level of system performance, availability, and other

quality-of-service (QoS) standards.

SMTP: Simple Mail Transfer Protocol

SOAP: Simple Object Access Protocol. An XML-based messaging protocol maintained

by W3C that is used to encode the information in Web service request and

Page 229: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 229/230

Oracle SOA Suite 11g: Essential Concepts Glossary - 5

response messages before sending them over a network. SOAP messages are

independent of any operating system or protocol and can be transported using a

variety of protocols, including HTTP and JMS.

Stateless: Having no information about what occurred previously. Most applicationsmaintain state, which means they remember what users were doing the last time

that they ran the application, and they remember all of the configuration settings.

In contrast, the Web is intrinsically stateless because each request for a new Web

page is processed without any knowledge of the previous pages requested.

UDDI: Universal Description, Discovery, and Integration. An OASIS standard for a

platform-independent, XML-based registry to publish and discover network-based

software components and services.

WLST: WebLogic Scripting Tool

WSDL: Web Services Description Language. A standard language for defining a Web

service description, which uses XML and XSD to describe the port type and its

operations, the message formats, and the protocol bindings.

WSFL: Web Service Flow Language. It is an XML language for the description of Web

services compositions.

WSIF: Web Services Invocation Framework. It is a simple Java API for invoking Web

Services.

WSIL: Web Services Inspection Language. It is an XML document format to facilitate

the discovery and aggregation of Web service descriptions in a simple and

extensible fashion.

XSD: XML Schema Definition. A W3C recommendation to formally describe the

schema and elements in an XML document. An XSD defines a structure for the

custom elements and their corresponding attributes, their relationship to each

other, and what types of information/data may be contained in them. This can be

Page 230: SOA Suite 11g Essential Concepts - Volume 2

8/16/2019 SOA Suite 11g Essential Concepts - Volume 2

http://slidepdf.com/reader/full/soa-suite-11g-essential-concepts-volume-2 230/230

used to verify that the content of an XML instance document adheres to a

particular schema.

XSLT: Extensible Stylesheet Language Transformations (XSLT) is the language used in

XSL style sheets to transform XML documents into other XML documents