2 Implementing SOA with Oracle SOA Suite Course Roadmap 2-2 Objectives 2-3 Basic Components of an SOA Infrastructure 2-4 Oracle SOA Suite 11g Components 2-5 Introduction to Service I
Trang 1Oracle SOA Suite 11g:
Essential ConceptsVolume 2 - Student Guide
D58786GC10
Edition 1.0
August 2009
D61581
Trang 2Copyright © 2009 , Oracle All rights reserved.
Disclaimer
This document contains proprietary information and is protected by copyright and other intellectual property laws You may copy and print this document solely for your own use in an Oracle training course The document may not be modified or altered in any way Except where your use constitutes "fair use" under copyright law, you may not 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 you find any problems in the document, please report them in writing to: Oracle University,
500 Oracle Parkway, Redwood Shores, California 94065 USA This document is not warranted to be error-free.
Restricted Rights Notice
If this documentation is delivered to the United States Government or anyone using the documentation on behalf of the United States Government, the following notice is applicable:
U.S GOVERNMENT RIGHTS The U.S Government’s rights to use, modify, reproduce, release, perform, display, or disclose these training materials are restricted by the terms of the applicable Oracle license agreement and/or the applicable U.S Government contract
Trang 3Contents
I Introduction
Course Objectives I-2
Course Agenda: Day 1 I-3
Course Agenda: Day 2 I-4
Course Agenda: Day 3 I-5
Summary I-6
1 Service-Oriented Architecture Concepts
Course Road Map 1-2
Enterprise Application Integration 1-9
Example of Application-Centric Integration 1-10
Integrating Solutions and Benefits with SOA 1-11
SOA Further Defined 1-12
Moving Toward Service-Centric Integration 1-13
SOA: A Paradigm Shift 1-14
The Eight-Domain Model Approach for SOA 1-15
Quiz 1-17
Building an SOA Reference Architecture: From Architecture Drivers to a Roadmap 1-18 SOA Reference Architecture 1-19
SOA Reference Architecture: Service Consumers 1-21
SOA Reference Architecture: Service Classification 1-22
SOA Reference Architecture: Service Providers 1-23
Reference Architecture: Example 1-24
Standards That Enable SOA 1-25
Quiz 1-27
Service and Web Service 1-28
Types of Service Access and Implementation 1-29
Ways to Integrate Services 1-30
Designing with an SOA Approach 1-31
Creating Service Portfolios 1-32
SOA Workflow and Orchestration 1-33
Implementing SOA: General Concepts 1-34
Quiz 1-35
Define SOA Governance 1-36
Identifying the Need of SOA Governance 1-37
SOA Governance Framework 1-38
Trang 42 Implementing SOA with Oracle SOA Suite
Course Roadmap 2-2
Objectives 2-3
Basic Components of an SOA Infrastructure 2-4
Oracle SOA Suite 11g Components 2-5
Introduction to Service Infrastructure 2-7
Introducing SCA in Oracle SOA Suite 11g 2-8
Defining a Composite Application 2-9
Introducing Oracle Mediator Component 2-11
Describing the Features of Oracle Mediator Component 2-12
Introducing Oracle BPEL Process Component 2-13
Introducing Business Rules Component 2-14
Introducing Human Task Component 2-15
Quiz 2-16
Introduction to Business Activity Monitoring 2-17
Monitoring Services with BPEL and BAM 2-18
Oracle Enterprise Manager 2-19
Oracle WebLogic Server 10.3 2-21
WebLogic Server Domain 2-22
WebLogic Server Servers 2-24
Administration Server 2-25
Managed Server 2-26
WebLogic Server Machines 2-27
SOA Development with Oracle JDeveloper 2-28
Creating Connections in Oracle JDeveloper 2-29
Creating an Application Server Connection in Oracle JDeveloper 2-31 Goals of Implementing SOA Application with Oracle SOA Suite 11g 2-33 Quiz 2-34
Summary 2-36
Practice 2 Overview: Creating Connections in JDeveloper 2-37
3 SOA Governance and Service
Life-Cycle Management Course Roadmap 3-2
Objectives 3-3
Define Service Life-Cycle Management 3-4
Phases of Service Life Cycle 3-5
The Need for Service Life-Cycle Management 3-6
Define SOA Governance 3-7
Relationship of Governance Disciplines 3-8
The Need for SOA Governance 3-9
Benefits of SOA Governance 3-10
Center of Excellence: Key to SOA Success 3-11
Example of Governance Organizational Structure 3-12
Trang 5SLA Management 3-21
Quiz 3-22
Constituents of SOA Governance Model 3-23
End-to-End SOA Governance 3-25
End-to-End SOA Governance: SOA Asset Management 3-26
End-to-End SOA Governance: Policy Management and Enforcement 3-27 End-to-End SOA Governance: Consumer Management 3-28
End-to-End SOA Governance: SOA Monitoring and Management 3-29 SOA Governance Solution 3-30
Oracle SOA Governance Solution 3-31
Quiz 3-32
Summary 3-33
Practice 3 Overview: Defining Policies for a Group of Services 3-34
4 Designing Services for SOA Implementations
Service Design Principles 4-10
Designing Coarse-Grained Interfaces 4-12
Choosing Service Implementation Styles 4-25
Fundamentals for Creating a Service 4-27
Building a Portfolio of Services 4-28
Describing a Web Service 4-29
Web Service Standards 4-30
Web Service Architecture 4-31
Service Artifacts 4-33
XML Schema Definitions 4-34
Defining Messages in XML Schemas 4-35
Web Services Description Language 4-36
Trang 6Packaged Application and Legacy Adapters 4-42
Quiz 4-43
Summary 4-44
Practice 4: Overview Designing Services for SOA Implementations 4-45
5 Creating a Composite Application
Course Roadmap 5-2
Objectives 5-3
Service Component Architecture 5-4
Components and Composites 5-6
Service Data Objects (SDO) 5-12
SDO Data Architecture 5-13
SCA and SDO 5-14
Creating an SOA Composite in JDeveloper 11g 5-15
Describing the SOA Composite Editor 5-16
Creating Exposed Services 5-18
Creating SOA Components 5-19
Examining the SCA Descriptor 5-20
Quiz 5-21
Adding a Mediator Component 5-22
Adding a BPEL Process Component 5-23
Comparing BPEL and Mediator 5-24
Examining the JDeveloper Workspace, Projects, and File Structure 5-25 Editing a Component in a Composite 5-26
Creating External References 5-27
Creating Wires 5-28
Creating Wires Modifies Connected Elements 5-29
Exposing Components as an External Service 5-30
Quiz 5-31
Deploying an SOA Composite Application 5-32
Summary 5-33
Practice 5: Overview Creating an SOA Composite Application 5-34
6 Managing and Monitoring SOA Composite Applications
Course Roadmap 6-2
Objectives 6-3
Overview of Managing SOA Applications 6-4
Managing with Oracle Enterprise Manager 6-5
Oracle Enterprise Manager Fusion Middleware Control 6-6
Accessing the SOA Infrastructure Home Page 6-7
Accessing a Composite Application Home Page 6-8
Example Composite Application Home Page 6-9
Deploying a Composite Application 6-10
Deploying SOA Composite Applications 6-11
Trang 7Working with the Flow Trace 6-14
Working with the Component Audit Trail Page 6-15
Quiz 6-16
Managing the State of Deployed SOA Composite Applications 6-17
Monitoring and Deleting Specific SOA Composite Application Instances 6-18 Recovering from SOA Composite Application Faults 6-19
Undeploying a Composite Application 6-21
Quiz 6-22
Summary 6-23
Practice 6: Overview Managing and Monitoring Composite Applications 6-24
7 Working with Mediator Components
Course Roadmap 7-2
Objectives 7-3
Introducing Oracle Mediator 7-4
Oracle Enterprise Service Bus and Mediator 7-5
Oracle Mediator Features 7-6
Event Delivery Network 7-7
Introducing Business Events 7-8
Creating an Oracle Mediator Component 7-18
Mediator Component Creation Options 7-19
Define Interface Later 7-20
Viewing the Mediator Source Code 7-22
Modifying a Mediator Component 7-23
Deleting a Mediator Component 7-24
Specifying Mediator Component Routing Rules 7-25
Introducing Routing Rules 7-26
Accessing Mediator Routing Rules 7-28
Defining Mediator Routing Rules 7-29
Specifying a Target Service: Example 7-31
Adding a Transformation to a Mediator Component 7-32
Trang 88 Orchestrating Services with a BPEL Component
Course Roadmap 8-2
Objectives 8-3
Process Orchestration Concepts 8-4
Introducing Business Process Execution Language (BPEL) 8-5 Creating a BPEL Process 8-7
Oracle BPEL Process Designer 8-8
Designing the BPEL Process 8-9
Quiz 8-10
Developing a BPEL Process 8-11
BPEL Activity Types 8-12
Grouping Activities by Using a BPEL Scope 8-14
Adding Activities to a Scope 8-15
Communicating Data with a BPEL Process 8-16
BPEL Variables 8-17
Choosing Global or Local Variables 8-19
The Assign Activity 8-21
Creating Assign Operations 8-22
Copying Data from Source to Target 8-23
Using the XPath Expression Builder 8-24
Quiz 8-25
Partner Links and Service Invocation 8-26
Partner Links, Partner Link Types, and Roles 8-27
Synchronous Services 8-28
Synchronous Process Structure: HelloWorld Example 8-29 Asynchronous Service 8-30
Asynchronous BPEL Process Structure 8-31
Creating a Partner Link 8-32
Configuring a Partner Link 8-33
Invoking a Synchronous Service 8-34
Conditionally Branching with a Switch Activity 8-35
Adding a Switch Activity 8-36
Configuring Branches of a Switch Activity 8-37
Summary 8-38
Practice 8: Overview Creating a BPEL Service Component 8-39
9 Working with the Human Task Component
Course Roadmap 9-2
Objectives 9-3
What Is a Human Task? 9-4
Human Workflow Diagram 9-5
Introduction to Human Workflow Concepts 9-7
Implementing Human Workflow Services 9-8
Exploring Workflow Exchange Patterns 9-9
Describing a Workflow as a Service 9-10
Trang 9Adding Task Parameters 9-17
Setting the Task Parameter Values 9-18
Generating a Task Form for the Worklist 9-19
Accessing the Worklist Application 9-20
Viewing Task Information 9-21
Managing Task Assignments 9-22
Summary 9-23
Practice 9: Overview Creating a Human Task to Approve Orders 9-24
10 Implementing a Business Rules Component
Course Roadmap 10-2
Objectives 10-3
Introducing Business Rules Technology 10-4
Declarative Rule Concepts 10-5
Rule Inference Concepts 10-6
Reasons for Using Rules Technology 10-7
Guidelines for Selecting Rules Use Cases 10-8
Introducing Oracle Business Rules 10-9
Introducing Oracle Business Rules Concepts 10-11
Developing a Rule-Enabled Application 10-12
Defining Oracle Business Rules Development Concepts 10-13
Quiz 10-14
Creating a Dictionary for Rule Definitions 10-15
Working with the Rules Editor in JDeveloper 10-16
Creating XMLFact Entries 10-18
Working with Bucketsets 10-19
Creating a Rule Test 10-25
Creating a Rule Action 10-26
Working with Decision Tables 10-27
Creating Conditions and Rules in Decision Tables 10-29
Creating Actions in Decision Tables 10-31
Working with Decision Functions 10-33
Integrating Rules with a BPEL Process 10-34
Adding a Business Rule Activity 10-35
Summary 10-38
Practice 10: Overview Implementing a Business Rule 10-39
11 Securing Services and Composite Applications
Course Roadmap 11-2
Objectives 11-3
Introduction to Web Services Security 11-4
Need for Web Services Security 11-5
Web Services Security Approaches 11-6
WS-Security 11-8
WS-Security Fundamentals 11-9
Quiz 11-11
Trang 10Oracle Web Service Manager 11-12
Components of Oracle Web Services Manager Architecture 11-13
Oracle Web Services Manager Policy Framework 11-14
Introduction to Policies 11-15
Policy Interceptor Pipeline 11-16
Policy Assertions 11-17
Quiz 11-18
Managing SOA Composite Application Policies 11-19
Attaching Security Policy to a Service 11-20
Quiz 11-21
Summary 11-22
Practice 11 Overview: Attaching Policies to Web Services 11-23
Appendix A: Practices and Solutions
Appendix B: Introduction to Linux
What Is Linux? B-2
What Is Oracle’s Strategy for Linux? B-3
File System and Basic Directory Structure B-4
Shell Commands B-6
Environment-Based Commands B-7
Information-Based Commands B-9
File System Commands B-11
Common vi Editing Commands B-13
Common FTP Communication Commands B-15
Archive Utilities B-17
Shortcuts and Tips B-19
Appendix C: Perform Common Tasks with Oracle JDeveloper
Objectives C-2
Create a Database Connection C-3
Create an Application Server Connection C-4
Create an Application C-6
Create an Empty Project C-8
Create an SOA Project C-9
Create a Project from Existing Sources C-10
Deploy an SOA Composite Application C-13
Summary C-15
Appendix D: SOA Adoption Planning Principles
Objectives D-2
SOA Adoption D-3
SOA Adoption Planning Activities D-4
SOA Adoption Planning Activities: Completing the Stakeholder Community D-5 SOA Adoption Planning Activities: Moving Through the Change Curve D-6 SOA Adoption Planning Activities: Establishing "Line-of-Sight" Goals D-7 SOA Adoption Planning Activities: Establish a Milestone Delivery Plan D-8 SOA Adoption Planning Activities: Usage of Metrics D-9
SOA Adoption Planning Activities: Enabling Business Innovation D-10
Trang 11Developing the SOA Reference Architecture D-13
Developing the SOA Reference Architecture: Align IT with Business D-14
Developing the SOA Reference Architecture: Develop a Baseline D-15
Developing the SOA Reference Architecture: Create SOA Reference Architecture D-16 Developing the SOA Reference Architecture: Create SOA Infrastructure Roadmap D-17 SOA Governance Model D-18
Example of an SOA Governance Model D-19
Summary D-20
Glossary
Trang 13Appendix A Practices and Solutions
Trang 14Table of Contents
Practices Overview 3
Practices for Lesson 1 4
Practice 1-1: Specifying Tasks in Workflow for a Purchase Order Processing Business Scenario 5
Practices for Lesson 2 8
Practice 2-1: Creating a JDeveloper Connection to the Application Server 9
Practice 2-2: Browsing an SOA Composite in Oracle JDeveloper 11g 13
Practices for Lesson 3 17
Practice 3-1: Paper-Based Questions 18
Practices for Lesson 4 21
Practice 4-1: Modifying an XSD Document 22
Practice 4-2: Modifying a WSDL Document 26
Practices for Lesson 5 35
Practice 5-1: Deploying a Prebuilt SOA Composite by Using Oracle JDeveloper 11g36 Practice 5-2: Creating an SOA Composite Application Workspace 38
Practice 5-3: Adding a Service Interface to the SOA Composite 43
Practice 5-4: Adding an External Reference to the SOA Composite 48
Practices for Lesson 6 51
Practice 6-1: Testing an SOA Composite by Using Oracle Enterprise Manager Fusion Middleware Control 52
Practice 6-2: Viewing the SOA Composite Instance Details 56
Practices for Lesson 7 59
Practice 7-1: Creating a Mediator to Route Order Request 60
Practice 7-2: Adding Routing Rules to the SOA Composite 67
Practice 7-3: Deploying and Testing the SOA Composite 71
Practices for Lesson 8 76
Practice 8-1: Creating an Order Approval BPEL Process 78
Practice 8-2: Modifying the Mediator in the SOA Composite 93
Practice 8-3: Deploying and Testing the SOA Composite 99
Practices for Lesson 9 103
Practice 9-1: Creating a Human Task for Manual Order Approval 105
Practice 9-2: Accessing the Human Task from the BPEL Process 111
Practice 9-3: Deploying and Testing the SOA Composite 119
Practices for Lesson 10 125
Practice 10-1: Adding a Business Rule to POProcessingComposite 127
Practice 10-2: Accessing the Business Rule from the BPEL Process 133
Practice 10-3: Deploying and Testing the SOA Composite 143
Practices for Lesson 11 145
Practice 11-1: Attach username_token_security_policy to the receivePO Service Endpoint 146
Practice 11-2: Attach log_policy to the receivePO Service Endpoint 151
Trang 15Oracle SOA Suite 11g: Essential Concepts A - 3
Practices Overview
The goal of the course practices is to progressively build the Purchase Order Processing SOA composite application
Purchase Order Processing SOA Composite Application (POProcessingComposite)
The Purchase Order Processing composite application (POProcessingComposite) is built
to process and approve a purchase order The purchase order details can come from any source (in our case, a testing page) The credit card status for the customer is validated and if the credit card is good, the order continues An order for a large purchase price requires a manual approval step Finally, the order is written to a text file
Trang 16Practices 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 processing
application Deduce a workflow diagram by segregating different task and business processes in a sequential flow for the purchase order processing business process
scenario
In this practice, you specify the missing links in the given processes workflow diagram for the purchase order processing business process scenario
Trang 17Oracle SOA Suite 11g: Essential Concepts A - 5
Practice 1-1: Specifying Tasks in Workflow for a Purchase Order Processing Business Scenario
In 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 of steps
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 is
validated)
4 If the credit card status is invalid, the order is rejected and the status information
is 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 the order 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 (annotated with question marks) in the following business process flow diagram
Trang 18Practice 1-1: Specifying Tasks in Workflow for a Purchase Order Processing Business Scenario (continued)
?
Get Amount
Trang 19Practice 1-1: Specifying Tasks in Workflow for a Purchase Order Processing Business Scenario (continued)
Oracle SOA Suite 11g: Essential Concepts A - 7
Get Credit Card Status
Get Amount
Amount Status
Check Quantity
valid
Trang 20Practices for Lesson 2
The goal of the practices for this lesson is to set up the practice development
environment In this practice, you start Oracle JDeveloper 11g in the Windows
environment 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
Trang 21Oracle SOA Suite 11g: Essential Concepts A - 9
Practice 2-1: Creating a JDeveloper Connection to the
Application Server
In this practice, you create an Application Server connection for your SOA Server to enable you to deploy SOA Composite application projects and other services To
complete this task, perform the following steps:
1) Start the WebLogic Administration server by double-clicking the Start WebLogic Admin Server icon on the desktop and wait until the server is started You can verify this when you see the text similar to the following display in the terminal window:
<Jun 16, 2009 12:59:43 AM EDT> <Notice> <WebLogicServer> 000360> <Server started in RUNNING mode>
<BEA-2) Start the SOA Server (managed server), by double-clicking the Start SOA Server icon
on the desktop, wait until the server is started You can verify this when you see the text similar to the following display in the terminal window:
INFO: FabricProviderServlet.stateChanged SOA Platform is
running and accepting requests
3) On the Desktop, double-click the JDeveloper 11g 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 information specified in the following table:
Step Screen/Page Description Choices or Values
a Create Application Server On the Name and Type page enter:
Trang 22Practice 2-1: Creating a JDeveloper Connection to the
Application Server (continued)
Step Screen/Page Description Choices or Values
Connection – Step 1 of 5 Connection Name:
MyApplicationServerConnection
Accept default for other items, and click Next
b Create Application Server
Connection – Step 2 of 5 On the Authentication page enter: Username: weblogic
Password: welcome1 Click Next
c Create Application Server
Connection – Step 3 of 5 On the Configuration page enter: WLS Domain: soa_domain
Accept defaults for remaining fields, and click Next
d Create Application Server
Connection – Step 4 of 5 On the Test page: Click Test Connection and ensure you have a
success for all eight tests, click Finish
Note: Use the following screenshots if required as a guide supporting steps described
in the preceding table of instructions:
a)
Trang 23Practice 2-1: Creating a JDeveloper Connection to the
Application Server (continued)
Oracle SOA Suite 11g: Essential Concepts A - 11
b) Username: weblogic Password: welcome1
c)
Trang 24Practice 2-1: Creating a JDeveloper Connection to the
Application Server (continued)
d)
Trang 25Oracle SOA Suite 11g: Essential Concepts A - 13
Practice 2-2: Browsing an SOA Composite in Oracle JDeveloper 11g
In this practice, you open an existing SOA composite application in JDeveloper and identify the various service components In order to open an existing application in JDeveloper, execute the following steps:
1) In the Application Navigator pane, click Open Application (or you can select File > Open)
2) Navigate to the D:\labs\Application_02\CreditCardValidation directory, and open the CreditCardValidation.jws file
Trang 26Practice 2-2: Browsing an SOA Composite in Oracle JDeveloper 11g (continued)
3) In the Open Warning window, click Yes
4) You see the application files and artifacts in the Application Navigator pane click composite.xml in the Application Navigator pane to open the SOA
Double-Composite editor
5) View the SOA composite service component (a single BPEL process) and the
exposed service in the SOA Composite editor Also view the SOA service
components and service adapters in the Component palette
Trang 27Practice 2-2: Browsing an SOA Composite in Oracle JDeveloper
11g (continued)
Oracle SOA Suite 11g: Essential Concepts A - 15
Optionally, double-click the CreditCardValidationProcess BPEL process to open the
BPEL designer and view the BPEL activities
6) Close the CreditCardValidation workspace and remove it from the JDeveloper
IDE
a) From the Application menu, select Close Application
Trang 28Practice 2-2: Browsing an SOA Composite in Oracle JDeveloper 11g (continued)
b) In the Confirm Close Application dialog box, select the “Close application and remove it from IDE” option and click OK
Trang 29Oracle SOA Suite 11g: Essential Concepts A - 17
Practices for Lesson 3
In this practice, you work on a set of paper-based questions that covers service life-cycle management and SOA governance
Trang 30Practice 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 services
c Service visibility
d Web service development
2 What is the need for service life-cycle management?
a Ensures flexible categorization of services
b Enables reporting on key metrics
c Ensures proper use of services
d Enables automated capture of business processes and services
3 Which two governance disciplines is SOA governance an extension of?
a IT governance
b EA governance
c Corporate governance
d 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 cost saving
d All of the above
5 Identify the characteristics of service management
a Centralized configuration and monitoring
b Policy-based routing and security
c Service registration, versioning, and discovery
d Build and compose service
6 Service directory can be defined as the place where:
a Services are registered
b Services are routed
c Orchestration of service takes place
7 Service policy specifies:
a Authentication
b Authorization
c Encryption
Trang 31Practice 3-1: Paper-Based Questions (continued)
Oracle SOA Suite 11g: Essential Concepts A - 19
8 Identify two constituents of the SOA governance model
a SOA portfolio governance
a SOA asset management
b Policy management and enforcement
c Consumer management
d SOA monitoring and management
10 Which of the following provides a structured contract between the provider and the consumer?
a SOA asset management
b Policy management and enforcement
c Consumer management
d SOA monitoring and management
11 Which of the following manages the SOA assets and associated metadata?
a SOA asset management
b Policy management and enforcement
c Consumer management
d SOA monitoring and management
12 Which of the following tracks enforcement of service contract and quality of service?
a SOA asset management
b Policy management and enforcement
c Consumer management
d SOA monitoring and management
Trang 32Practice 3-1: Paper-Based Questions (continued)
Solutions to Practice 3-1 (Paper-Based Questions)
Trang 33Oracle SOA Suite 11g: Essential Concepts A - 21
Practices for Lesson 4
Services are the basic building blocks for an SOA implementation The service interface
is defined and described by using Web Service Definition Language (WSDL) The
message structures for communicating the required data between a service client and service operation are defined and based on the types expressed in an XML schema
document (XSD)
The goal of the practices in this lesson is to modify an XSD and a WSDL document by
using Oracle JDeveloper 11g 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
Trang 34
Practice 4-1: Modifying an XSD Document
In this practice, you modify an XSD schema by using Oracle JDeveloper 11g
1) Launch Oracle JDeveloper 11g (if not already open)
Hint: Double-click the JDeveloper icon on the desktop to launch JDeveloper
2) Open the Application_04.jws workspace in JDeveloper
a) From the File menu, select Open
b) Navigate to the D:\labs\Application_04 directory Select
Application_04.jws and click the Open button
c) View the projects, files, and directories of the Application_04.jws workspace
in the Application Navigator pane
3) Open and modify the response.xsd schema by using JDeveloper XSD Visual editor
a) In the Application Navigator pane, expand CreditCardValidation > Resources b) Double-click response.xsd to open it in the XSD Visual editor pane
c) Ensure that the Schema Components option is selected in the Component palette drop-down list
Trang 35Practice 4-1: Modifying an XSD Document (continued)
Oracle SOA Suite 11g: Essential Concepts A - 23
d) Click and drag a sequence component from the Component palette to the output complex type in the XSD Visual editor pane
e) Click and drag an element component from the Component palette, and add it to the sequence
Trang 36Practice 4-1: Modifying an XSD Document (continued)
f) Right-click the element component in the XSD Visual editor pane and select “Go
to Properties” from the shortcut menu
g) In the Property Inspector pane, enter the following values for the respective fields: name: args0
type: xsd:string
Press Enter to accept the values
Trang 37Practice 4-1: Modifying an XSD Document (continued)
Oracle SOA Suite 11g: Essential Concepts A - 25
4) Save the response.xsd schema
5) Validate the XSD schema
a) In the Application Navigator pane, right-click response.xsd and select the Validate XML option from the shortcut menu
b) In the Messages-Log pane, verify that the schema has neither errors nor warnings
Trang 38Practice 4-2: Modifying a WSDL Document
In this practice, you modify a WSDL document by using Oracle JDeveloper 11g
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: response.xsd
namespace: http://www.example.org
Press Enter to accept the values
Trang 39Practice 4-2: Modifying a WSDL Document (continued)
Oracle SOA Suite 11g: Essential Concepts A - 27
Trang 40Practice 4-2: Modifying a WSDL Document (continued)
iii) Click the icon on the Messages box to add a message
iv) In the Create Message dialog box, enter the Message Name as
messageOutput and click OK
v) Select WSDL in the Component palette drop-down list
vi) Click and drag a part component from the Component palette to the
messageOutput node in the WSDL editor pane
vii) In the Create Part dialog box, enter the following values and click OK: Part Name: parameters
Reference Type: element