Creating your first OSB project(Simple Pass Through Proxy Service)

Hi guys in this post we are going to create a Simple Pass through Proxy in Oracle Service Bus. I hope you have successfully setup your OSB configuration project, if not please follow my previous post here. Now moving on to Develop your first OSB project.
Step 1--> Right click on your OSB configuration project and select Oracle Service Bust project
http://postimg.org/image/3z2xfc961/h
Step 2--> Give it a name. I have given Calculator since i am going to connect OSB to an external web service(calculator). U can give any name.
http://postimg.org/image/6iyk9fwq1/
Step 3--> Now right click on ur Project and create four folders i.e, WSDL, Proxy, Business Service and XSD. Its always a good practice to keep all your files in respective folders.
http://postimg.org/image/qu5thzzop/

http://postimg.org/image/w30ufvi3t/
Step 4--> Now copy XSD and WSDL files of your existing service in respective folders.[Note: You need working WSDL and corresponding Schema files of an existing service. i.e you need a running web service  which you want to call from your OSB. You can get free web service WSDLs from here ]

Step 5--> Now right click on Business Service folder and new Business Service give it a name. I have given CalculatorBusinessService.
http://postimg.org/image/l4pkxotih/

http://postimg.org/image/fpguwq1yh/
Step 6--> Now Select WSDLweb service--> browse--> provide wsdl file location-->Select port of your WSDL. Finish and override previous transport configuration.
http://postimg.org/image/jfghpmdt5/
Step 7--> Now right click on Proxy folder and create new Proxy service. Give it a name. I have given
http://postimg.org/image/ux1futj6x/
Step 8--> Now you need to configure the proxy with the same WSDL file. Select WSDL web service and provide the wsdl file location and select port--> Finish and override the previous Transport configuration.
http://postimg.org/image/5zth065bd/

Step 9--> Now click on Message Flow tab in CalculatorProxyService.
http://postimg.org/image/61807bwix/
Step 10--> Drag a route node from Oracle Service Bus Message Flow(Right Hand side)
http://postimg.org/image/xpuneujjd/
Step 10-->Drag a routing node from Route Actions
http://postimg.org/image/grvmt0a5l/
Step11--> In Routing Service* provide a link to your Business Service. So that your Proxy directly routes to the Business Service.
http://postimg.org/image/qqglfhjl5/
 Click on ok .

Now You are ready to deploy your OSB project. To deploy right click on configuration project and run as server.

Work Flow:
Client--> Proxy Service-->Business Service--> External Service
1) Business  Service: Wraps the external Web Service and provides an extra layer of abstraction .
2) Proxy Service: Routes requests coming from Client to that Business Service. And provide response back to client

Comments

  1. 888sport trustpilot - ThauberBet planet win 365 planet win 365 12bet 12bet クイーンカジノ クイーンカジノ 488morongo casino login free spins no deposit bonus

    ReplyDelete

Post a Comment

Popular posts from this blog

LATEX Tutorials

First Step to Oracle Service Bus (Creating Oracle Service Bus Configuration Project)