Chapter 12 Working with Web Services


Generating Web services for IBM DB2 v8.1

In IBM DB2, Web services are defined by Document Access Definition Extension (DADX) files.

A PDM with the appropriate extended model definition allows you to generate a DADX file for each Web service defined for IBM DB2.

You can attach the DADX extended model definition at model creation. In the New dialog box, once you have selected Physical Data Model in the Model type list, and IBM DB2 UDB 8.x Common Server in the DBMS dropdown listbox, click the Extended Model Definitions tab and select DADX.

If you have not selected the DADX extended model definition at model creation, see the following procedure.

The following procedure assumes you have at least one Web service defined for IBM DB2.

Steps To generate DADX files for IBM DB2:

  1. < If the DADX extended model definition is already attached to the model, go to step 6 > In the menu bar, select Model→Extended Model Definitions.

    The List of Extended Model Definitions appears.
  2. In the list toolbar, click the Import an Extended Model Definition tool.

    The Extended Model Definition Selection dialog box appears.
  3. Select DADX in the list of extended model definitions.
  4. Click OK.

    DADX appears in the List of Extended Model Definitions.
  5. Click OK.

    The DADX extended model definition appears attached to the model in the Browser tree view.
  6. In the menu bar, select ToolsExtended Generation.

    The Generation dialog box appears with DADX selected in the Targets page.
  7. Click the Select a Path button, beside the Directory box, to select a path for the DADX files.
  8. In the Selection page, select the Web services for which you want to generate a DADX file.
  9. Click OK.

    The Result dialog box appears with the paths of the DADX files.
  10. Select the path of a DADX file and click Edit.

    The DADX file appears in the editor window.
  11. Click Close in the Result dialog box.

You can now use the DADX files for SOAP requests in IBM DB2 UDB Web services Object Runtime Framework (WORF).

 


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