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
![](https://shdhumale.files.wordpress.com/2020/09/image1-1.jpg?w=1024)
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
![](https://shdhumale.files.wordpress.com/2020/09/image2-1.jpg?w=653)
![](https://shdhumale.files.wordpress.com/2020/09/image3-1.jpg?w=322)
![](https://shdhumale.files.wordpress.com/2020/09/image4-1.jpg?w=748)
![](https://shdhumale.files.wordpress.com/2020/09/image5-1.jpg?w=691)
Click OK
![](https://shdhumale.files.wordpress.com/2020/09/image6-1.jpg?w=722)
![](https://shdhumale.files.wordpress.com/2020/09/image7-1.jpg?w=723)
click Next
![](https://shdhumale.files.wordpress.com/2020/09/image8-1.jpg?w=748)
![](https://shdhumale.files.wordpress.com/2020/09/image9-1.jpg?w=744)
Click finish
![](https://shdhumale.files.wordpress.com/2020/09/image11-1.jpg?w=1024)
![](https://shdhumale.files.wordpress.com/2020/09/image12-1.jpg?w=1024)
![](https://shdhumale.files.wordpress.com/2020/09/image13-1.jpg?w=1024)
![](https://shdhumale.files.wordpress.com/2020/09/image14-1.jpg?w=1024)
![](https://shdhumale.files.wordpress.com/2020/09/image15-1.jpg?w=1024)
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
![](https://shdhumale.files.wordpress.com/2020/09/image16-1.jpg?w=942)
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
![](https://shdhumale.files.wordpress.com/2020/09/image17.jpg?w=1024)
![](https://shdhumale.files.wordpress.com/2020/09/image18-1.jpg?w=1024)
Now lets test the same
![](https://shdhumale.files.wordpress.com/2020/09/image19-1.jpg?w=1024)
![](https://shdhumale.files.wordpress.com/2020/09/image20-1.jpg?w=1024)
![](https://shdhumale.files.wordpress.com/2020/09/image21-1.jpg?w=1024)
![](https://shdhumale.files.wordpress.com/2020/09/image22.jpg?w=1024)
![](https://shdhumale.files.wordpress.com/2020/09/image23.jpg?w=1024)
Note:-Jdeveloper also provide the IDE for testing WSDL is working or not by using this below screen
![](https://shdhumale.files.wordpress.com/2020/09/image24.jpg?w=1024)
Click on the WSDL link and below screen will be opened
![](https://shdhumale.files.wordpress.com/2020/09/image25.jpg?w=1024)
![](https://shdhumale.files.wordpress.com/2020/09/image26.jpg?w=1024)
![](https://shdhumale.files.wordpress.com/2020/09/image27.jpg?w=1024)
No comments:
Post a Comment