Run Samples

The DB2 Web Services samples demonstrate accessing DB2 databases using SQL defined in XML based DADX files. The samples use various databases, stored procedures and XML extenders. The samples are grouped below based on the resources they access and their type. Samples not listed below can be found in the samples application. Refer to Development for information on working with all of the samples or developing your own DB2 Web Services.

You can select links below to run specific DB2 Web services or all services defined in a corresponding DADX file. Select the corresponding DADX file link to view the DB2 Web service definition that is processed by WORF.

Before running the samples below, be sure that you first configure the required resources (databases, stored procedures. Note that you only need to configure the resources associated with the sample.

The following samples return XML documents, containing database data or return codes. A return code value of '1' means successful and a return code value of '0' means failure.

When running the samples using Microsoft Internet Explorer, you may see the result "This page cannot be found" instead of an error message. To see error messages, you can either use a Netscape browser or configure Internet Explorer to display them. To configure Internet Explorer, select Internet Options from the Tools menu and click on "Show friendly HTTP error messages" in the Advanced tab.

SAMPLES Database - the following samples use the DEPARTMENT and EMPLOYEE tables in the SAMPLES database.

  1. Selected services
  2. All services (using a WORF test page)

TRAVEL Database - the following samples use the DEMO.CITY_TAB table in the TRAVEL database.

  1. Selected services
  2. All services (using a WORF test page)

XML Extenders - the following samples use XML extenders with the SAMPLE database.

  1. Selected services
  2. All services (using a WORF test page)

Stored Procedures - the following samples use stored procedures.

Try invoking the service again, if you get the following error returned when invoking these services:
Error 400: java.lang.Exception: Connection error SQL system error.