Oracle ESB Lesson05: SOAP Request/Reply against Customer_Data Table Oracle Integration Product Management ESB Lesson05 Page 1
Scenario Overview Request/Reply CustomerQuery Use Case Add a database adapter to do a request/reply query of the data in the Customer_Data table from the CustomerData scenario. ESB Lesson05 Page 2
Scenario Overview Request/Reply CustomerQuery Features - JDev ESB Diagrammer - DB Adapter - ESB Routing Service - Transformation - Sync request/reply ESB Lesson05 Page 3
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 4
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 5
Create CustomerQuery ESB Project Open Applications Navigator tab Right 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 6
Create CustomerQueryDB Adapter Expand the Component Palette and select Adapter Services Select Database Adapter and drag it into the central work area Enter Name= CustomerQueryDB click the Configure Adapter Icon ESB Lesson05 Page 7
Initial DB Adapter Wizard Screens Click Next Click Next ESB Lesson05 Page 8
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 9
Import and Add Customer_Data Table Click Import Tables Click Query Select CUSTOMER_DATA table Click > to move to Selected column Click OK ESB Lesson05 Page 10
Alter Settings and Select Customer_Data Optionally Expand SYSTEM.CUSTOMER_DATA Observe columns Click Next ESB Lesson05 Page 11
Select CUSTOMERID as Query Key Select CUSTOMERID Click Finish Click OK ESB Lesson05 Page 12
Observe CustomerQueryDB Service ESB Lesson05 Page 13
Create CustomerQuery_RS from Schema Expand the Component Palette and select ESB Services Select Routing Service and drag it into the central work area Enter Name= CustomerQuery_RS Click Generate WSDL from Schemas Enter Operation Name = executequery Click Browse ESB Lesson05 Page 14
Create CustomerQuery_RS from Schema Expand Project Schema Files->CustomerQueryDB_table.xsd Select CustomerQueryDBSelectInputParameters Click OK Click Reply Click Browse ESB Lesson05 Page 15
Create Reply from Schema Expand Project Schema Files->CustomerQueryDB_table.xsd Select CustomerDataCollection Click OK Click OK ESB Lesson05 Page 16
Observe CustomerQuery_RS Select and double click the text for the CustomerQuery_RS ESB Lesson05 Page 17
Add Routing Rule to CustomerQueryDB Click + to expand operations Click + to add a new routing rule ESB Lesson05 Page 18
Select Target Operation and Save Expand Service in Project->DefaultSystem->CustomerQueryDB Select operation CustomerQueryDBSelect Click Save Click X to close ESB Lesson05 Page 19
Register with Server Right click CustomerQuery Project Select Register with ESB and click LocalESBServer Receive Registration of Services Successful message ESB Lesson05 Page 20
View in ESB Control Console ESB Lesson05 Page 21
Test With EM Login to EM Click Home ESB Lesson05 Page 22
Test With EM Click Web Services Check CustomerQuery_RS Click Test Service ESB Lesson05 Page 23
Test With EM Click Test Web Service Click Invoke ESB Lesson05 Page 24
View Test Results Click View: Formatted XML ESB Lesson05 Page 25
View Instance Data in ESB Control Go to ESB Control Console Click Instances Select first instance message and view status ESB Lesson05 Page 26