The business service acts as a wrapper of our external service. Once created, we will no longer have to use the WSDL to refer to the external service, but can use the business service.

This forms an additional abstraction layer, which is applied before the real endpoint is invoked, such as SLA monitoring, service throttling, service pooling, and others. Sentence is too long, runs on too long. Would be better split into two sentences.



Verify that the service is running and available by asking it for its WSDL definition.

In Eclipse OEPE, perform the following steps:

1. In the project tree, right-click on the business folder and select New | Business Service.

2. Enter CustomerService into the File name field, check a second time that the business folder is selected, and click on the Finish button:


3. A new business service artifact is created in the business folder and the editor for the business service opens automatically.

4. Navigate to the General tab, if it does not already have the focus, and select the WSDL Web Service radio button.

5. Click on the Browse button and a pop up window will show up, where the WSDL resource of the external service to be wrapped, can be selected.

6. Click on the Consume button.

7. A second pop-up window will show up where the WSDL resource can be specified:



8. Select URI in the Service Resource drop-down listbox.

9. In the URI field, enter the URL of the WSDL resource to consume. The external service provides its WSDL through the following URL: http://localhost:8088/mockCustomerServiceSOAP?WSDL.

10. Click on the OK button and Eclipse will consume the WSDL from this URL.

11. Select the CustomerServiceSOAP port on the next window.

12. Click on the OK button.

13. Select Yes on the pop-up message window to confirm that the transport configuration settings will be overwritten by the information from the selected WSDL.

14. Save the OSB project by selecting File | Save.

15. In the Project Explorer, right-click on the imported WSDL file mockCustomerServiceSOAP.wsdl and select Rename. Enter CustomerService.wsdl into the New name field of the pop-up window and confirm.

16. In the Project Explorer, drag the CustomerService.wsdl file into the wsdl folder and drop it there. All the references to the WSDL file are automatically adapted by Eclipse OEPE.

17. Navigate to the Transport tab and check that the Endpoint URI has been replaced with the service endpoint setting from the WSDL that we consumed:



18. Save the artifact by selecting File | Save or by clicking on the Save toolbar button.






Leave a Reply

Subscribe to Posts | Subscribe to Comments

About This Site

Howdy! My name is Suersh Rohan and I am the developer and maintainer of this blog. It mainly consists of my thoughts and opinions on the technologies I learn,use and develop with.
Powered by Blogger.

- Copyright © My Code Snapshots -Metrominimalist- Powered by Blogger - Designed by Suresh Rohan -