Upload
others
View
16
Download
0
Embed Size (px)
Citation preview
ESB Lesson05 Page 1
Oracle ESBLesson05:SOAP Request/Reply against Customer_Data Table
Oracle Integration Product Management
ESB Lesson05 Page 2
Scenario Overview
Use CaseAdd a database adapter to do a request/reply query of the data in the Customer_Data table from the CustomerData scenario.
Request/Reply CustomerQuery
ESB Lesson05 Page 3
Scenario Overview
Features- JDev ESB Diagrammer- DB Adapter- ESB Routing Service- Transformation- Sync request/reply
Request/Reply CustomerQuery
ESB Lesson05 Page 4
Scenario Overview
Steps- Run CustomerData demo to
collect data- Create CustomerQuery Project- Add DB Adapter
CustomerQueryDB- Add Routing Service
CustomerQuery_RS- Add Routing Rule with Reply
and Transformation- Test and View Results
Request/Reply CustomerQuery
ESB Lesson05 Page 5
Prepare Customer Data from Olite DB
Must delete records where customerid is null- Run <SOA_HOME>\integration\olite\bin\sql_olite.bat- Enter “delete from customer_data where customerid is null;”- Enter “Commit” then exit
ESB Lesson05 Page 6
Create CustomerQuery ESB Project
Open Applications Navigator tabRight click “Applications->ESBSamples” and select “New Project”In the Gallery, select Item = “ESB Project” and click “OK”Enter Project Name = “CustomerQuery” and click “OK”
ESB Lesson05 Page 7
Create CustomerQueryDB Adapter
Expand the Component Palette and select “Adapter Services”Select “Database Adapter” and drag it into the central work areaEnter Name=“CustomerQueryDB click the Configure Adapter Icon
ESB Lesson05 Page 8
Initial DB Adapter Wizard Screens
Click Next Click Next
ESB Lesson05 Page 9
Select Connection and Select Operation
Select Connection “Olite”Click Next
Select “Perform an Operation on a Table”Deselect all options and select “Select”Click Next
ESB Lesson05 Page 10
Import and Add Customer_Data Table
Click “Import Tables”Click “Query”Select “CUSTOMER_DATA” tableClick “>” to move to “Selected” columnClick “OK”
ESB Lesson05 Page 11
Alter Settings and Select Customer_Data
OptionallyExpand “SYSTEM.CUSTOMER_DATA”Observe columns
Click “Next”
ESB Lesson05 Page 12
Select CUSTOMERID as Query Key
Select “CUSTOMERID”Click “Finish”
Click “OK”
ESB Lesson05 Page 13
Observe CustomerQueryDB Service
ESB Lesson05 Page 14
Create CustomerQuery_RS from Schema
Enter Name=“CustomerQuery_RS”Click “Generate WSDL from Schemas”Enter “Operation Name” = “executeQuery”Click “Browse”
Expand the Component Palette and select “ESB Services”
Select “Routing Service” and drag it into the central work area
ESB Lesson05 Page 15
Create CustomerQuery_RS from Schema
Click “Reply”Click “Browse”
Expand “Project Schema Files->CustomerQueryDB_table.xsdSelect “CustomerQueryDBSelectInputParameters”Click “OK”
ESB Lesson05 Page 16
Create Reply from Schema
Click “OK”Expand “Project Schema Files->CustomerQueryDB_table.xsdSelect “CustomerDataCollection”Click “OK”
ESB Lesson05 Page 17
Observe CustomerQuery_RS
Select and double click the text for the CustomerQuery_RS
ESB Lesson05 Page 18
Add Routing Rule to CustomerQueryDB
Click “+” to expand operationsClick “+” to add a new routing rule
ESB Lesson05 Page 19
Select Target Operation and Save
Expand “Service in Project->DefaultSystem->CustomerQueryDB”Select operation “CustomerQueryDBSelect”
Click “Save”Click “X” to close
ESB Lesson05 Page 20
Register with Server
Right click ”CustomerQuery” ProjectSelect “Register with ESB” and click “LocalESBServer”Receive “Registration of Services Successful” message
ESB Lesson05 Page 21
View in ESB Control Console
ESB Lesson05 Page 22
Test With EM
Click “Home”
Login to EM
ESB Lesson05 Page 23
Test With EM
Check CustomerQuery_RS …Click “Test Service”
Click “Web Services”
ESB Lesson05 Page 24
Test With EM
Click “Test Web Service”
Click “Invoke”
ESB Lesson05 Page 25
View Test Results
Click “View: Formatted XML”
ESB Lesson05 Page 26
View Instance Data in ESB Control
Go to ESB Control ConsoleClick “Instances”Select first instance message and view status