Oracle ESB Lesson03: ESB CustomerData SOAP Oracle Integration Product Management ESB Lesson03 Page 1
ESB SOAP Scenario Overview Functionality Add an outbound SOAP service callout to the CustomerData tutorial Features - JDeveloper ESB Diagrammer - SOAP service type - OC4J Enterprise Manager - ESB Control Instance data Steps - Add ACME SOAP service to OC4J - Add SOAP Service callout in JDev - Add Routing Rule - Add Filter Expression (Rating > 5) - Register with server - Test and View Results ESB Lesson03 Page 2
Login to Enterprise Manager Login to EM: http://localhost:8888/em Username=oc4jadmin Password=welcome1 (or your chosen password) ESB Lesson03 Page 3
Browse to SOA Container JMV Click Home to drill down to SOA JVM ESB Lesson03 Page 4
Edit Applications Click Applications ESB Lesson03 Page 5
Go to Deploy Screens Click Deploy ESB Lesson03 Page 6
Select EAR File Click Browse Select C:\Customer\ESBSamples-AcmeCust-WS.ear Click Next ESB Lesson03 Page 7
Enter Application Name Enter Application Name ACMECustomerSOAPService Click Next ESB Lesson03 Page 8
Finish Deploy Review and accept deployment default deployment options Click Deploy ESB Lesson03 Page 9
Deployment Successful Optionally Test. Click Return Click OC4J Home -> Web Services -> ReceiveCustomerDataSoapHttpPort Click Test Service -> Test Web Service -> Invoke See No response message response ESB Lesson03 Page 10
Add SOAP Call in CustomerData Start JDeveloper and Open the CustomerData Project Click the Component Palette and select ESB Services Drag a SOAP Service to the work area ESB Lesson03 Page 11
Complete AcmeService Dialog Enter Name: ACMEService Browse and Select System/Group in project : CustomerData WSDL File: http://localhost:8888/esbsamples-acmecust-context-root/receivecustomerdatasoaphttpport?wsdl Port Type: ReceiveCustomerData Click Ok ESB Lesson03 Page 12
Edit Routing Service See the new ACMEService in the Diagram Click the CustOut_RS to select Double Click the title to open Routing Rules ESB Lesson03 Page 13
Routing Rule Definition Click + on left to expand Routing Rules Click green + on right to add a new Routing Rule Note: you may have to expand screen to the right horizontally to see it ESB Lesson03 Page 14
Select Target Service Browse and select Services in project Select the ACMEService ReceiveCust operation Click OK See the new Routing Rule at the bottom ESB Lesson03 Page 15
Open Filter Expression Builder Click the filter expression icon to bring up the expression builder ESB Lesson03 Page 16
Add Filter Expression Expand the message to Customer->Profile and select CreditRating Click Insert Into Expression Add > 5 at end of expression Click OK ESB Lesson03 Page 17
Save Routing Rule, Create XSLT Click Save Click to create an XSLT Transformation ESB Lesson03 Page 18
Create New XSL Mapper File Click Create New Mapper File then click OK Select and drag from source CustomerId to target customer Click Save then to Close ESB Lesson03 Page 19
Save Routing Rule Click Save, then Close Click CustomerData.esb to back to the diagram ESB Lesson03 Page 20
View ACME Service in Diagram See updated the ACMEService Routing Rule ESB Lesson03 Page 21
Register Project Go to Applications Navigator and Right Click on CustomerData Select Register with ESB and click LocalIntegrationServer ESB Lesson03 Page 22
Registration Successful Receive Registration Summary with newly added services ESB Lesson03 Page 23
Test CustomerData Copy LegacyCustomerBadCredit.xml to the In Folder ESB Lesson03 Page 24
View Diagram in Console See the new ACMEService in the relationship diagram ESB Lesson03 Page 25
View Instance Diagram in Console Click Instances Icon then select the last message instance Note the green line showing successful execution path of service ESB Lesson03 Page 26