26
ESB Lesson03 Page 1 Oracle ESB Lesson03: ESB CustomerData SOAP Oracle Integration Product Management

Oracle ESB...ESB Lesson03 Page 2 ESB SOAP Scenario Overview Functionality Add an outbound SOAP service callout to the CustomerData tutorial Features-JDeveloper ESB Diagrammer-SOAP

  • Upload
    others

  • View
    16

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Oracle ESB...ESB Lesson03 Page 2 ESB SOAP Scenario Overview Functionality Add an outbound SOAP service callout to the CustomerData tutorial Features-JDeveloper ESB Diagrammer-SOAP

ESB Lesson03 Page 1

Oracle ESBLesson03: ESB CustomerData SOAP

Oracle Integration Product Management

Page 2: Oracle ESB...ESB Lesson03 Page 2 ESB SOAP Scenario Overview Functionality Add an outbound SOAP service callout to the CustomerData tutorial Features-JDeveloper ESB Diagrammer-SOAP

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

Page 3: Oracle ESB...ESB Lesson03 Page 2 ESB SOAP Scenario Overview Functionality Add an outbound SOAP service callout to the CustomerData tutorial Features-JDeveloper ESB Diagrammer-SOAP

ESB Lesson03 Page 3

Login to Enterprise Manager

Login to EM: http://localhost:8888/emUsername=oc4jadmin Password=welcome1 (or your chosen password)

Page 4: Oracle ESB...ESB Lesson03 Page 2 ESB SOAP Scenario Overview Functionality Add an outbound SOAP service callout to the CustomerData tutorial Features-JDeveloper ESB Diagrammer-SOAP

ESB Lesson03 Page 4

Browse to SOA Container JMV

Click “Home” to drill down to SOA JVM

Page 5: Oracle ESB...ESB Lesson03 Page 2 ESB SOAP Scenario Overview Functionality Add an outbound SOAP service callout to the CustomerData tutorial Features-JDeveloper ESB Diagrammer-SOAP

ESB Lesson03 Page 5

Edit Applications

Click “Applications”

Page 6: Oracle ESB...ESB Lesson03 Page 2 ESB SOAP Scenario Overview Functionality Add an outbound SOAP service callout to the CustomerData tutorial Features-JDeveloper ESB Diagrammer-SOAP

ESB Lesson03 Page 6

Go to Deploy Screens

Click “Deploy”

Page 7: Oracle ESB...ESB Lesson03 Page 2 ESB SOAP Scenario Overview Functionality Add an outbound SOAP service callout to the CustomerData tutorial Features-JDeveloper ESB Diagrammer-SOAP

ESB Lesson03 Page 7

Select EAR File

Click “Browse”Select “C:\Customer\ESBSamples-AcmeCust-WS.ear”Click “Next”

Page 8: Oracle ESB...ESB Lesson03 Page 2 ESB SOAP Scenario Overview Functionality Add an outbound SOAP service callout to the CustomerData tutorial Features-JDeveloper ESB Diagrammer-SOAP

ESB Lesson03 Page 8

Enter Application Name

Enter Application Name “ACMECustomerSOAPService”

Click Next

Page 9: Oracle ESB...ESB Lesson03 Page 2 ESB SOAP Scenario Overview Functionality Add an outbound SOAP service callout to the CustomerData tutorial Features-JDeveloper ESB Diagrammer-SOAP

ESB Lesson03 Page 9

Finish Deploy

Review and accept deployment default deployment options

Click “Deploy”

Page 10: Oracle ESB...ESB Lesson03 Page 2 ESB SOAP Scenario Overview Functionality Add an outbound SOAP service callout to the CustomerData tutorial Features-JDeveloper ESB Diagrammer-SOAP

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

Page 11: Oracle ESB...ESB Lesson03 Page 2 ESB SOAP Scenario Overview Functionality Add an outbound SOAP service callout to the CustomerData tutorial Features-JDeveloper ESB Diagrammer-SOAP

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

Page 12: Oracle ESB...ESB Lesson03 Page 2 ESB SOAP Scenario Overview Functionality Add an outbound SOAP service callout to the CustomerData tutorial Features-JDeveloper ESB Diagrammer-SOAP

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”

Page 13: Oracle ESB...ESB Lesson03 Page 2 ESB SOAP Scenario Overview Functionality Add an outbound SOAP service callout to the CustomerData tutorial Features-JDeveloper ESB Diagrammer-SOAP

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

Page 14: Oracle ESB...ESB Lesson03 Page 2 ESB SOAP Scenario Overview Functionality Add an outbound SOAP service callout to the CustomerData tutorial Features-JDeveloper ESB Diagrammer-SOAP

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

Page 15: Oracle ESB...ESB Lesson03 Page 2 ESB SOAP Scenario Overview Functionality Add an outbound SOAP service callout to the CustomerData tutorial Features-JDeveloper ESB Diagrammer-SOAP

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

Page 16: Oracle ESB...ESB Lesson03 Page 2 ESB SOAP Scenario Overview Functionality Add an outbound SOAP service callout to the CustomerData tutorial Features-JDeveloper ESB Diagrammer-SOAP

ESB Lesson03 Page 16

Open Filter Expression Builder

Click the filter expression icon to bring up the expression builder

Page 17: Oracle ESB...ESB Lesson03 Page 2 ESB SOAP Scenario Overview Functionality Add an outbound SOAP service callout to the CustomerData tutorial Features-JDeveloper ESB Diagrammer-SOAP

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”

Page 18: Oracle ESB...ESB Lesson03 Page 2 ESB SOAP Scenario Overview Functionality Add an outbound SOAP service callout to the CustomerData tutorial Features-JDeveloper ESB Diagrammer-SOAP

ESB Lesson03 Page 18

Save Routing Rule, Create XSLT

Click “Save”

Click to create an XSLT Transformation

Page 19: Oracle ESB...ESB Lesson03 Page 2 ESB SOAP Scenario Overview Functionality Add an outbound SOAP service callout to the CustomerData tutorial Features-JDeveloper ESB Diagrammer-SOAP

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”

Page 20: Oracle ESB...ESB Lesson03 Page 2 ESB SOAP Scenario Overview Functionality Add an outbound SOAP service callout to the CustomerData tutorial Features-JDeveloper ESB Diagrammer-SOAP

ESB Lesson03 Page 20

Save Routing Rule

Click “Save”, then “Close”

Click “CustomerData.esb” to back to the diagram

Page 21: Oracle ESB...ESB Lesson03 Page 2 ESB SOAP Scenario Overview Functionality Add an outbound SOAP service callout to the CustomerData tutorial Features-JDeveloper ESB Diagrammer-SOAP

ESB Lesson03 Page 21

View ACME Service in Diagram

See updated the “ACMEService” Routing Rule

Page 22: Oracle ESB...ESB Lesson03 Page 2 ESB SOAP Scenario Overview Functionality Add an outbound SOAP service callout to the CustomerData tutorial Features-JDeveloper ESB Diagrammer-SOAP

ESB Lesson03 Page 22

Register Project

Go to “Applications Navigator” and Right Click on “C ustomerData”

Select “Register with ESB” and click “LocalIntegrationServer”

Page 23: Oracle ESB...ESB Lesson03 Page 2 ESB SOAP Scenario Overview Functionality Add an outbound SOAP service callout to the CustomerData tutorial Features-JDeveloper ESB Diagrammer-SOAP

ESB Lesson03 Page 23

Registration Successful

Receive “Registration Summary” with newly added services

Page 24: Oracle ESB...ESB Lesson03 Page 2 ESB SOAP Scenario Overview Functionality Add an outbound SOAP service callout to the CustomerData tutorial Features-JDeveloper ESB Diagrammer-SOAP

ESB Lesson03 Page 24

Test CustomerData

Copy “LegacyCustomerBadCredit.xml” to the “In” Folder

Page 25: Oracle ESB...ESB Lesson03 Page 2 ESB SOAP Scenario Overview Functionality Add an outbound SOAP service callout to the CustomerData tutorial Features-JDeveloper ESB Diagrammer-SOAP

ESB Lesson03 Page 25

View Diagram in Console

See the new “ACMEService” in the relationship diagram

Page 26: Oracle ESB...ESB Lesson03 Page 2 ESB SOAP Scenario Overview Functionality Add an outbound SOAP service callout to the CustomerData tutorial Features-JDeveloper ESB Diagrammer-SOAP

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