Publishing a web service

This recipe explains how to prepare a web service for publishing. The publishing of a web service represents the step in the lifecycle where the implementation gets exposed and is available for integration. In this recipe, we will show you how to deploy a web service from JDeveloper to the WebLogic server.

Getting ready

We will use the example that we have amended throughout this chapter to complete this recipe.

How to do it…

Following are the steps required to publish a web service from JDeveloper to the WebLogic server:

  1. In JDeveloper, at the project root node, right-click and select the Deploy | WebServices... option as shown in the following screenshot:
    How to do it…
  2. The Deploy WebServices wizard opens. Select the Deploy to Application Server option and click on Next.
  3. The next page opens the server list where we select our BPEL server and click on Next as shown in the following screenshot:
    How to do it…
  4. The next page shows the Weblogic Options that can be configured. We won't change anything right now, so simply confirm the given options and click on Summary.
  5. The Summary page shows the deployment summary, and we can check if the configuration is as expected. Click on the Finish button; we are satisfied with the deployment configuration. The deployment will now start.
    How to do it…

How it works…

As a result of the deployment process, a WAR archive is created which is later deployed to the application server. Although we select to deploy to the BPEL server, the package is actually deployed to the Weblogic application server and propagated through the Oracle Enterprise Manager Console.

Let's log in to the Oracle Enterprise Manager Console. We search for our web service under the Application Deployments folder as shown in the following screenshot:

How it works…

When we click on our web service, the application deployment window opens on the right side of the pane with a number of options and statistics.

See also

Now that we have deployed the web service, it is time to test how well our web service is performing. Refer to the next recipe to learn the ways of testing a web service.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset