Client Application Developer's Guide

     Previous  Next    Open TOC in new window    View as PDF - New Window  Get Adobe Reader - New Window
Content starts here

Accessing Data Services Through AquaLogic Service Bus

AquaLogic Data Services Platform can be accessed from AquaLogic Service Bus. Thus an AquaLogic Service Bus client make full use of data services (Figure 8-1). This allows a more efficient and flexible approach to accessing data services than exposing them as web services via WebLogic Workshop and Java Web Services (JWS).

To make an AquaLogic Data Service Platform data service available to an AquaLogic Service Bus client, you need to do the following:

Your client is then able to access the data service as an AquaLogic Service Bus client.

Figure 8-1 AquaLogic Data Service Platform and AquaLogic Service Bus Interoperability Architecture

AquaLogic Data Service Platform and AquaLogic Service Bus Interoperability Architecture

The following section provides the details.

 


Accessing AquaLogic Data Services Platform from AquaLogic Service Bus

Note: The following assumes that you are running AquaLogic Service Bus 2.5 under WebLogic Server 9.2 and AquaLogic Data Service Platform under WebLogic Server 8.1.

Perform the following steps to access AquaLogic Data Services Platform from AquaLogic Service Bus:

Step 1: Start Your Servers

  1. Start the WebLogic Server 9.2 for the AquaLogic Service Bus application needing access to your WebLogic Server 8.1 data service.
  2. Start the WebLogic Server 8.1 for the data service.

For example, suppose that the MortgageBroker application sample in AquaLogic Service Bus needs access to a RTLApp data service that comes with AquaLogic Data Service Platform.

You then need to start the server for the AquaLogic Service Bus Mortgage Broker examples (on Windows you can do this by selecting:

Start Arrow symbolAll Programs Arrow symbolBEA Products Arrow symbolExamples Arrow symbolAquaLogic Service Bus Arrow symbolStart Examples Server

You also need to start the server for the RTL demo (on Window you can do this by selecting:

Start Arrow symbolAll Programs Arrow symbolBEA WebLogic Platform 8.1 Arrow symbolBEA AquaLogic Data ServicesPlatform2.5 Arrow symbolExamples Arrow symbolRTL Demo Arrow symbolLaunch RTL Demo Server

Step 2: Generate the WSDL for the Data Service

You can obtain the WSDL for the Data Service in two different ways. Each is described below.

Generate the WSDL Through WebLogic Workshop 8.1

  1. Launch WebLogic Workshop 8.1.
  2. Navigate in the Application panel (on the left) to your data service (.ds file) that you want to be available from AquaLogic Service Bus and select it.
  3. Right-click to select Generate WSDL File for Service Bus (Figure 8-2). A WSDL file for the data service will be generated in the same directory where the data service is located.
  4. Figure 8-2 Generate WSDL for Service Bus Dialog


    Generate WSDL for Service Bus Dialog

For example, if you had navigated to the Customer.ds file in the RTLApp, Customer.wsdl will be generated.

Export the WSDL with the AquaLogic Data Service Console

  1. Launch the AquaLogic Data Services Console.
  2. On Windows you can do this by selecting:

Start Arrow symbolAll Programs Arrow symbolBEA WebLogic Platform 8.1 Arrow symbolBEA AquaLogic Data Services Platform 2.5 Arrow symbolExamples Arrow symbolRTL Demo Arrow symbolAquaLogic Data Services Console

You can also do this by typing http://localhost:7001/ldconsole in your web browser.

  1. In the project navigator on the left, select ldplatform, then your application underneath it.
  2. Next navigate to Data Services and to the data service for your application.
  3. For instance, if your application were the RTLApp example application, then you would navigate from ldplatform to RTLApp to Data Services to RTLServices.

  4. Pick the particular service that you want to export.
  5. If you were exporting a service from the RTLApp example, you might pick Customer.

  6. Click Export WSDL in the far right column of the data service you want to export. You will be given the opportunity to save it to any location.

Step 3: Deploy the Data Services Transport

  1. Launch the AquaLogic Service Bus console, then select the WebLogic Server Console.
  2. The WebLogic Server Console will appear in a new window. Click on Deployments under Your Deployed Resources.

  3. When the Summary of Deployments panel appears, click Lock & Edit under Change Center on the left.
  4. The Install button then becomes active. Click it.
  5. In the Install Assistant, navigate to the deployment EAR file, dsp_transport.ear, in WebLogic Server 8.1.
  6. In Windows, this is located at:

    <bea_home>\weblogic81\liquiddata\application\

  7. Then select dsp_transport.ear and click Next.
  8. dsp_transport will appear under Deployments.

    Figure 8-3 Install Application Assistant Dialog


    Install Application Assistant Dialog

  9. Click Activate, then check the box in front of dsp_transport.ear and select Servicing All Requests from the Start drop-down menu. This will complete activation.

Step 4: Import the WSDL for the Data Service

  1. Return to the service bus console and select Project Explorer.
  2. Navigate to your project folder and click either Create or Edit.
  3. Note: There will be either a Create or an Edit button in the Change Center, depending on whether you are creating a new session or editing an existing one.
  4. Select the project folder or an existing subfolder, or create a new one. For the latter, type a name in Enter New Folder Name under Folders and click Add. The new folder will be added to the tree structure.
  5. Next import the WSDL file that you generated in Step 2. Do this by selecting WSDL under Interface in the Create Resource drop-down menu.
  6. On the panel that appears next, give the resource a name and a description (optional), then click Browse to locate the WSDL file that you generated in Step 2. Select it and click Save. It will then appear as a resource in the Resources table.

For more information, see Adding a WSDL in "Using the AquaLogic Service Bus Console."

Step 5: Create the Business Service

  1. Next, in Create Resources under Resources, select Business Service under Service. In the panel that appears, enter a name for the service in Service Name. For instance, if you had created Customer.wsdl for the sample RTLApp, then you might want to name your business service CustomerBS. Enter an optional description of the service.
  2. Below in the same panel, select WSDL Web Service and click Browse to locate the WSDL file that you imported in Step 4. Click on it. A Select WSDL Definitions panel will appear. Select a binding under Bindings.
  3. If you were running the sample application and had imported Customer.wsdl as described above, you would select CustomerSoapBinding (Figure 8-4).

    Figure 8-4 Setting SOAP Binding for WSDL


    Setting SOAP Binding for WSDL

  4. Click Submit. Then click Next in the main panel.
  5. Under Protocol, select dsp from the drop-down menu. Then enter the Endpoint URI. For Endpoint URI, enter:
  6. t3://<host:port>/<application_name>.

    If you were running the RTLApp as described above in the default setup, you would enter:

    t3://localhost:7001/RTLApp

  7. Click Add to add the Endpoint URI, then click Next.
  8. Click Next again to accept the defaults. Then on the Create a Business Service - Summary screen that appears, click Save.
  9. The business service should then appear under the table of Resources. If you were creating CustomerBS, it will appear in the table.

For more information, see Adding a Business Service in "Using the AquaLogic Service Bus Console."

Step 6: Create the Proxy Service

The procedure for creating the proxy service is similar to that for creating the business service.

  1. Under Create Resources, select Proxy Service under Service in the drop-down menu.
  2. In the next panel that appears, give your proxy service a name. If you were working with the example, you might want to name it CustomerPS. Provide a description (optional) for the service in Description. Then select Business Service under Create from Existing Service and click Browse. In the screen that appears, select the name of the business service that you created in the previous step. If you had created CustomerBS, as in the example, select CustomerBS. Click Submit, then click Next.
  3. In the next panel, select http in the drop-down menu for Protocol and type in a name for the Endpoint URI. For Endpoint URI you can give it any name you want. Click Next.
  4. In the next two screens click Next to accept defaults, or fill in other values or select other choices.
  5. You will then see a summary screen allowing you to edit your entries. When you are satisfied with your entries, click Save. The proxy service should then appear in the table of resources. If you were working with the example, you should see CustomerPS in the table.
  6. Click Activate, then click Submit.

For more information, see Adding a Proxy Service in "Using the AquaLogic Service Bus Console."

Step 7: Test Your Setup

  1. Reselect the folder where your resources are located, then, under Resources, locate the proxy service you created.
  2. Select Launch Test Console under Actions. The test console should appear. Pick a method under Available Options in the drop-down menu and click Execute. For the RTLApp example, you might select the getCustomer method. In Response Document, you should see a list of customers.

For more information, see Test Console in "Using the AquaLogic Service Bus Console."

Additional Information

For more information, see the following:


  Back to Top       Previous  Next