5. Accessing a Web Service This page last changed on Jan 11, 2009. ## Accessing a Web Service After you select web service as your data source, you are given the option of specifying a WSDL file, URI, or ALSB proxy service. ##### Selecting Web Service as a Data Source There are several ways to access a specific web service: From a Web Service Description Language (WSDL) file located in your current ALDSP project or through the AquaLogic Service Consumption Framework (SCF). From a WSDL accessible via a URL. Through an ALSB proxy service. ### Locating a WSDL File You can select a WSDL file in two ways: From your project using the Browse button or By downloading a WSDL to your project through the consumption framework #### Browsing to a WSDL Click Browse to navigate to a WSDL in your current dataspace project. #### Downloading a WSDL File via the Service Consumption Framework To download a WSDL file using the Service Consumption Framework: Click on Download WSDL... Select from available Service Resource Options. Click OK. A SCF message indicating success or failure will appear. Click Next. Choose from available operations.
   | Downloading a WSDL is similar to downloading a text file. Once it is in your project, you can treat it as local and make changes. Changes made to such a WSDL will not be reflected in the source WSDL. Similarly, any changes to the source WSDL (new operations or changes to the signature) would only be reflected if the WSDL was again downloaded and reimported.
##### Using the Service Consumption Framework to Access a WSDL The following table briefly describe available service resources:
Resource | Description
--- | ---
Enterprise Repository | WSDLs in the associated artifacts folder of the Enterprise Repository
UDDI | UDDI resources registered with the UDDI registry.
URI | Any valid WSDL accessible via URI (alternatively, use the URI option from the primary dialog)
File System | A WSDL retrievable from the local file system
Workspace | WSDLs or services in other projects in the Workspace (alternatively, use the Browse button for WSDLs in the current project on the primary dialog).
#### Selecting the Product Type For a Workspace service resource, services can be consumed from several types of products. By default, three product types are available: Generic WSDL SAM (Service Assembly Modeler) AquaLogic Data Services Platform If AquaLogic Service Bus is present, ALSB may also be an option. ##### Selecting a WSDL from an ALDSP Workspace If you download a WSDL via SCF through either the Enterprise Repository or Workspace option and you are using the ALDSP or ALSB product type, you can locate and view the originated service of the WSDL using the Navigate to External Service right-click menu option on the WSDL file in the Project Explorer. ### Specifying a WSDL URI You can select an external WSDL through the URI Web Service Data Source option.
| You can test the ability to create a physical data service based on a web service using the following WSDL (available as of this writing):
    http://www.whitemesa.net/wsdl/r2/base.wsdl
##### Importing Metadata from a WSDL ### The ALSB Proxy Service Option To access web services through AquaLogic Service Bus (ALSB) you need to: Provide access and credential information to AquaLogic Service Bus. Select a proxy service (if there is more than one). AquaLogic Service Bus access requires providing the following: Server name Port number User name Password This information should be available from your AquaLogic Service Bus administrator.
| Notes: You must configure the ALSB proxy service to use the `sb` transport protocol to enable access through ALDSP. The Select Proxy list only shows the WSDL-based AquaLogic Service Bus transport proxies in the ALSB server you are connected to.
After the required information is provided, the WSDL will become available using the name of the selected proxy service. ### Steps in Importing a Web Service Specify a Web service URL, local WSDL file, or ALSB proxy service. Click Next.

Document generated by Confluence on Jan 13, 2009 15:57