Beruflich Dokumente
Kultur Dokumente
Overview
This tutorial demonstrates how Oracle Service Bus (OSB) makes a service callout to a Siebel
CRM web service. OSB then routes the response to the appropriate business service, using
content based routing.
Use Case
Incoming applications at a Federal department are routed through OSB to determine the
appropriate business service to process the application. It is the stated policy of the
department to provide preferential treatment for small and medium sized firms.
OSB makes a service callout to Siebel CRM to obtain the employee count. If the count is <=
1000, the request is routed to the small and medium business (smb) business service for
processing; all other applications are routed to the large corporation (corp) business
service.
The tutorial uses a file system to represent the two business services.
Prerequisites
1. Oracle Service Bus 3.0 installation, available at Oracle BEA Product Downloads.
2. Access to Siebel 8.0 Call Center.
3. Siebel CRM setup to create an inbound web service for the Siebel business service (see
Section VIII).
2
I. Initial setup
3
5. The ALSB-SEBL project is created and listed in the Project Explorer as shown. To
create the relevant project folders, click ALSB-SEBL to open the associated project
page.
6. Enter WSDL in the New Folder Name field and click Add Folder.
4
5
II. Create the WSDL resources
1. Click on WSDL.
2. In the Create Resource drop down list (in the right hand frame), select WSDL.
4. Click Browse to navigate to the location of the WSDL file that was created earlier (see
Section VIII).
6
6. Confirmation that the WSDL was successfully created.
7
III. Create the Business Service: Part 1
1. Click on BusinessService.
5. Click Browse.
8
6. The Select a WSDL page is displayed. The web service is based on the WSDL resource
that was created earlier. Select SiebelAccount.
8. Click Submit.
9
9. Click Next.
12. The Endpoint URI gets populated with the specified name.
14. Accept the default entries (by clicking Next) in the next two screens:
10
15. We are now at the Create a Business Service Summary page. Click Save.
11
IV. Create the Proxy Services
1. Click on ProxyService.
2. In the Create Resource drop down list (in the right hand frame), select Proxy Service.
12
5. The Select Business Service page is displayed. The proxy service is based on the Business
Service that was created earlier. Select account-info.
6. Click Submit.
13
8. Accept the default settings (by clicking Next in each screen) for:
Transport Configuration
HTTP Transport
Operation Selection
9. We are now at the Proxy Service Summary page, click Save to register the service.
14
V. Create the Business Service: Part 2
1. Click on BusinessService.
15
3. Enter smb as the Service Name.
5. Click Next.
6. Choose file from the Protocol drop down list. Click Next.
16
7. Specify the location of the Endpoint URI as file://d/temp/smb
17
11. The Summary page for "smb" should read as shown. Click Save.
12. Repeat steps 1-11 to create another Business Service with these two changes:
18
13. The Summary page for "corp" should read as shown. Click Save.
19
15. Click Submit.
20
VI. Proxy Services Configuration: Part 1
3. In the Actions column for the company-size Proxy Service, click on the Edit Message
Flow icon as indicated by the cursor location.
21
4. Click on company-size and select Add Pipeline Pair.
22
6. Click on stage and select Edit Name and Comments.
23
7. Enter process-loan as shown.
8. Click Save.
24
9. Click on process-appln, and select Edit Stage.
10. Click on the Add an Action link, and select Communication > Publish Table.
25
11. Click on <Expression> to bring up the XQuery/XSLT Expression editor.
26
14. Navigate to NumberofEmployees in $body - AccountQueryById (response).
27
17. Select <= in the Operator drop down list.
18. Enter 1000 in the text box (we configure the routing table such that companies with
employees <=1000 are routed to the smb business service).
28
22. Click on <Expression>
29
26. Click Copy Property.
29. Click on the Assign icon. Select Add an Action > Message Processing > Insert.
30
31. Enter <file:fileName>{$customer-id}</file:fileName>
31
VII. Proxy Services Configuration: Part 2
2. Select <Service>.
32
4. Click on the Assign icon in the Request Actions for regular-loan and select Copy.
5. Click on the Add an Action icon in the Request Actions for the Default Case and select
Paste Action.
6. Repeat Steps 4 and 5 (copy/paste) for the Insert action. Verify that the Default Case
Request Actions appear as shown.
33
7. Select Save All.
8. Click Activate.
9. Click Submit.
Note: The two business processes (smb and corp) have identical processing steps in this
example for ease of implementation.
34
VIII. Siebel CRM configuration
Refer to the tutorial Create an Inbound Web Service for Siebel Account Business Service
for instructions on creating a web service from a Siebel business service.
IX. Testing
2. This brings up the Summary of Proxy Services page (in the right hand frame).
3. Click on the Launch Test Console icon in the Actions column for credit-rating as
indicated by the cursor location.
35
5. Select XML.
7. The output from the service callout to Siebel CRM is depicted below. Note the values of
AccountId (24-28V6) and the NumberofEmployees (260).
8. As the NumberofEmployees is <= 1000, it is routed to the smb business process. This
business process redirects the response to the <AccountId>.xml file. Verify that the file
24-28V6.xml is created in the specified directory (/temp/smb).
X. Summary
This tutorial demonstrates how OSB makes a service callout to a Siebel CRM web service.
OSB then routes the response to the appropriate business service, using content based
routing.
36