oracle esb · 2020. 7. 13. · esb lesson03 page 2 esb soap scenario overview functionality add an...
Post on 24-Jan-2021
13 Views
Preview:
TRANSCRIPT
-
ESB Lesson03 Page 1
Oracle ESBLesson03: ESB CustomerData SOAP
Oracle Integration Product Management
-
ESB Lesson03 Page 2
ESB SOAP Scenario Overview
FunctionalityAdd 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 3
Login to Enterprise Manager
Login to EM: http://localhost:8888/emUsername=oc4jadmin Password=welcome1 (or your chosen password)
-
ESB Lesson03 Page 4
Browse to SOA Container JMV
Click “Home” to drill down to SOA JVM
-
ESB Lesson03 Page 5
Edit Applications
Click “Applications”
-
ESB Lesson03 Page 6
Go to Deploy Screens
Click “Deploy”
-
ESB Lesson03 Page 7
Select EAR File
Click “Browse”Select “C:\Customer\ESBSamples-AcmeCust-WS.ear”Click “Next”
-
ESB Lesson03 Page 8
Enter Application Name
Enter Application Name “ACMECustomerSOAPService”
Click Next
-
ESB Lesson03 Page 9
Finish Deploy
Review and accept deployment default deployment options
Click “Deploy”
-
ESB Lesson03 Page 10
Deployment Successful
Optionally Test. Click ReturnClick OC4J Home -> Web Services -> ReceiveCustomerDataSoapHttpPortClick “Test Service” -> “Test Web Service” -> InvokeSee “No response message” response
-
ESB Lesson03 Page 11
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 12
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 13
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 14
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 15
Select Target Service
Browse and select “Services in project”Select the “ACMEService” “ReceiveCust” operationClick “OK”See the new Routing Rule at the bottom
-
ESB Lesson03 Page 16
Open Filter Expression Builder
Click the filter expression icon to bring up the expression builder
-
ESB Lesson03 Page 17
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 18
Save Routing Rule, Create XSLT
Click “Save”
Click to create an XSLT Transformation
-
ESB Lesson03 Page 19
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 20
Save Routing Rule
Click “Save”, then “Close”
Click “CustomerData.esb” to back to the diagram
-
ESB Lesson03 Page 21
View ACME Service in Diagram
See updated the “ACMEService” Routing Rule
-
ESB Lesson03 Page 22
Register Project
Go to “Applications Navigator” and Right Click on “C ustomerData”
Select “Register with ESB” and click “LocalIntegrationServer”
-
ESB Lesson03 Page 23
Registration Successful
Receive “Registration Summary” with newly added services
-
ESB Lesson03 Page 24
Test CustomerData
Copy “LegacyCustomerBadCredit.xml” to the “In” Folder
-
ESB Lesson03 Page 25
View Diagram in Console
See the new “ACMEService” in the relationship diagram
-
ESB Lesson03 Page 26
View Instance Diagram in Console
Click “Instances” Icon then select the last message instance
Note the green line showing successful execution path of service
top related