web analytics
free online training

Oracle Service Bus Hello World!

In this lesson we are going to create our first Hello World service. This requires us to create a Business Service, a Proxy Service and import an External Service we created earlier using BPEL. Installed Hello World BPEL process is a pre-requisite for this lesson. Also, please see Introduction to OSB for an overview of the product.

Login to OSB console using the URL http://localhost:7001/sbconsole. This URL may change based on your server’s hostname and port number.

image

Click on “Create” under Change Center to create an exclusive session for our Helloworld project. This ensures that resulting changes are not in conflict with other users’ work.

image

Create a project to hold XML artefacts and WSDLs. Click on Project Explorer at the bottom left side of the console. Enter “helloworld” as the project name.

image

Click on helloworld project to get to the project details page.

image

image

Create three folders to hold Business Service, Proxy Service and External Service resources: BusinessService, ProxyService, ExtService respectively.

image

image

Create External Service

Lets import WSDL required to invoke HelloWorld external service. Click on ExtService folder link. From Create Resource drop down, select “Resource from URL” option.

image

Get Hello World BPEL process’s WSDL from EM Console.

image

Copy Hello World BPEL Process’s WSDL URL for URL/Path field. Enter other field values as shown below. Click on Next.

image

From Load Resources page, we can see that OSB has imported WSDL as well as referenced XSD file. Click on Import button.

image

Import confirmation is shown in the next screen.

image

Create Business Service

Click on BusinessService folder link from Project Explorer on the left side to go back to project folder.

Let us create a Business Service using the imported resources. From Create Resource menu, select Business Service.

image

Enter HelloWorldBS for Service Name.

image

 

Click on Browse next to WSDL Web Service to open up WSDL we added in previous steps. Click on HelloWorldBPEL WSDDL link.

image

Select HelloWorldProcess_pt port type and click on Submit.

image

image

Click on Next to go to Transport Configuration page. We can leave the default values. Click on Last button to go to summary page. Click on Save to complete creation of Business Service.

image

From Resource section, we can see that HelloWorldBS business service is successfully created.

image

Create Proxy Service

Click on ProxyService folder link from Project Explorer. Under Resources section, select Proxy Service from Create Resource combo box.

image

 

 

Enter values as shown below.

image

Select Business Service and click on Browse button to see the list of available business services. Select HelloWorldBS from the list and click on Submit.

image

 

image

Click on Last and then Save from summary page to create Proxy Service. We can see HelloWorld proxy service successfully created from Project details page.

image

Create Message Flow

Since Proxy Service is created based on an existing Business Service, request is already configured to be routed from proxy service to business service. Let us verify this. Click on Edit Message Flow icon from Actions section.image

 

From Edit Message Flow window, we can see the message flow is already established. Click on Cancel to go back to project details page.

image

Let us save our work. Click on Activate button from Change Center. Click on Submit button.

image

Testing Proxy Service

Click on ProxyService folder link from Project Explorer.

image

Click on Launch Test Console action as shown below.

image

 

Leave the default values for all fields except for Payload. Enter orafmwschool as input element value. Click on Execute.

image

We can see the request and response  XML documents. Observe response document contains “Hello orafmwschool” as the result element value.

image

This completes the Helloworld OSB lesson.

VN:F [1.9.17_1161]
Rating: 10.0/10 (2 votes cast)
VN:F [1.9.17_1161]
Rating: 0 (from 0 votes)
Oracle Service Bus Hello World!, 10.0 out of 10 based on 2 ratings

Related posts

3 Comments
  1. I am interested in Oracle service Bus (OSB) Training. Please respond with fee details if you are providing training

    VA:F [1.9.17_1161]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.9.17_1161]
    Rating: 0 (from 0 votes)
    • Please visit http://www.orafmwschool.com/training for training details. Emailed you remaining details …

      VN:F [1.9.17_1161]
      Rating: 0.0/5 (0 votes cast)
      VN:F [1.9.17_1161]
      Rating: 0 (from 0 votes)
    • Need OSB training..Let me know more details

      VA:F [1.9.17_1161]
      Rating: 0.0/5 (0 votes cast)
      VA:F [1.9.17_1161]
      Rating: 0 (from 0 votes)
Leave a Reply