Chapter 8 Working with Web Services


Reverse engineering WSDL files

The import process analyzes the WSDL file to find the different Web services and port types defined in the script. You can select which component or port type to import using the tree view in the Selection page.

Each selected Web service generates a component and an implementation class. Furthermore, each port type selected in a selected Web service generates an interface.

The Selection page in the Import WSDL dialog box contains the following items:

Item Description
WSDL URL Indicates where the WSDL should be published on the web. You can either click the Browse File tool beside this box to select the file from a standard file selection dialog box, enter the WSDL URL directly, or click the Browse UDDI tool beside this box to search for a WSDL file on a UDDI server.
For more information on browsing UDDI, see section Browsing for WSDL on UDDI
Package Defines the package and namespace where the component and the Web service class are created
Component type Displays the type of the component to create (for Java only)
Preview WSDL Allows you to preview the WSDL and the unique key used to locate the UDDI

Note

If the WSDL contains a section prefixed with <!-- service -->, a component instance is created. This section is displayed in the WSDL page in the property sheet of the component instance.

Steps To reverse engineer WSDL files:

  1. Select Language→Import WSDL to display the Import WSDL dialog box.
  2. Click the Selection tab to display the Selection page.
  3. Select the WSDL file that you want to import.
  4. Select a package.
  5. <Java only> Select a component type.
  6. Select the Web services and port types you want to import.
  7. Click OK to reverse.

    A progress box appears. If the model in which you are reverse engineering already contains data, the Merge Models dialog box appears.

    For more information on merging models, see section Merging Models, in chapter Comparing and Merging Models in the General Features Guide .
  8. Click OK to merge the reverse engineered Web service components.

    The reversed items are added to your model and are visible in the diagram. They are also listed in the Reverse page of the Output window, located in the lower part of the main window.

 


Copyright (C) 2005. Sybase Inc. All rights reserved.