Thursday, July 17, 2014

In a major Oracle SOA 12c release, Oracle made significant changes for Oracle Service Bus. Now we can use Jdeveloper to use build OSB applications, no need to use separate IDE tool (Eclipse) any more. OSB web based console is totally redesigned, all monitoring and run time configuration features are now provided in EM console itself. Message flows which were part of OSB proxy service now added as separate resources in form of Split-join and Pipeline etc.

In this post, I will walk you through the steps to create sample OSB application in Jdeveloper and test it using integrated server.

Let’s get started with OSB application creation. Go to File à New à Application àService Bus Application.

OSB Application
New OSB Application


Name your application and OSB project.

OSB Project


Add required folder structure as per your naming standards. To add a new folder right click on required folder or file under which you want to add the folder then go to New à From Gallery.

OSB Folder


Choose Folder from Items list and rename the folder.

OSB Feature


Repeat above step for all other folders.

Now we add business service to the project which will invoke the HelloWorld SOA Composite which we created in previous post, to add the business service drag “HTTP” adapter to composite.

OSB Business Service


Name your business service and make sure transport in HTTP. Click on Next.

OSB Business Service

Choose WSDL option and browse HelloWorld Composite WSDL file.

OSB MDS


Wizard asked you to add required WSDL and XSD file of HelloWorld application to your OSB project. Check all and click on finish.

OSB Import



Now we add the proxy service and Pipeline to the composite. Pipeline contains all the actions which need to be performed before invoking business service.

OSB PipeLine


Name you pipeline and click on next.

OSB PipeLine

You see Expose as a proxy option in the pipeline; this option will configure proxy service for you based on pipeline message type.

We use same HelloWorld WSDL file for the pipeline and proxy. Check the WSDL option and browse the HelloWorld WSDL file.

OSB Proxy


Once you add the HelloWorld WSDL file, your pipeline window should look like below.

Call SOA from OSB


Your flow looks like below. Now wire pipeline to business service.

OSB Composite




With the above step we are done with build part. Now we need to test on integrated server. To test it right click on proxy service and click on Run.

RUN OSB


This opens a OSB console for you. Provide request message and click on Execute.

OSB Console



You should see response in same console.

OSB Response


You can also check the flow in EM console.

OSB instance






1 comments :

  1. Hi Vivek, How do we input the request in 12c. I probably have different version of 12c which is not showing header fields but only payload.
    1. do we give both header and payload.
    2. please specify a sample input to give to test the service.

    ReplyDelete