Enabling DB2 as a web service provider
Enabling DB2® as a web service provider allows you to create web services on z/OS® with your DB2 data and applications.
About this task
DB2 for z/OS as a web service provider has the following prerequisites:
- Enable JDBC (legacy or universal) in DB2.
- Install WebSphere® Application Server Version 5 or later on z/OS.
- Ensure that the WebSphere Application
Server library contains the following two files:
- mail.jar
- activation.jar
To use DB2 Web Services
Object Runtime Framework (WORF), you need to make the run time services
available to WebSphere Application
Server (WAS). By default, WORF is installed in the HFS directory:
/usr/lpp/db2a10_worf/
The
base installationdirectory contains the lib/ subdirectory
that contains the run time JAR file worf.jar. To
begin using WORF, copy worf.jar, mail.jar,
and activation.jar to a WAS shared library directory
that you have already set up and restart WAS.WORF provides
a sample web application in the following directory:
lib/services.war
The
application contains sample Document Access Definition Extension (DADX)
files that define sample DB2 web
services. Procedure
To set up this application with sample DADX files:
What to do next
To load the application:
- On the WAS Administrative Console's main page, under "Applications", select "Enterprise Applications". Select the application and click "Start" to load the application.
- After the application loads, point a browser to your server with the context root that you chose (for example, http://server:port/services/). The welcome page lists the sample DADX files that are provided in services.war. To test the services, click on the links.