Wednesday, September 09, 2020

Calling external W/S from OSB [External W/S can do anything on its own i.e. DB call or call another external W/S]

 May times its become important to call the WSDL file that is already exposed by other application and we want to consume it for our business purpose. OSB also gives this functionality by create business service.

For our example we had taken a WSDL file Temperature_WSDL.wsdl (available on https://www.w3schools.com/xml/tempconvert.asmx?WSDL)

We have used SOAP UI tool to exposed this WSDL file as shown below

We are going to create a new Business service. I am using mine old OSB project. If you did not have any JDeveloper OSB project you can create by following this link

http://siddharathadhumale.blogspot.com/2020/09/creating-simple-service-bus-122140.html

To create a Business serivce you can either Drag and drop HTTP from the pallet for you can right click on the project and select new –> Business Seervice

Click OK

click Next

Click finish

Once the business service is created

If you create Business service using right click –>new –> business service then you will not see the BS on the project pallet but if you have created by using drag drop from the pallet you will see the below screen

Lets run the service by right click onthe Business service and run

Once the server is starte copy paste the console text on url and check the WSDL W/S is working or not

Now lets test the same

Note:-Jdeveloper also provide the IDE for testing WSDL is working or not by using this below screen

Click on the WSDL link and below screen will be opened

No comments: