Enabling DB2 as a web service consumer

Enabling DB2® as a web service consumer allows you to receive web service data in your DB2 applications.

Before you begin

DB2 for z/OS® as a web service consumer has the following prerequisites:

  • Start of changeInstall IBM® XML Toolkit for z/OS 1.10End of change
  • Configure TCP/IP

About this task

Installation job DSNTIJMV contains sample startup procedure DSNWLM, which you can use as a model for your startup procedures. Start of changeYou must modify the startup procedure only if the web services routines are not defined to the DSNWLM_WEBSERVICES core WLM environment.End of change

Procedure

To enable DB2 as a web service consumer:

  1. Change the following items in each startup procedure:
    1. Change the procedure name from DSNWLM to the procedure name that you specified when you set up the WLM application environment.
    2. Change the value of APPLENV to the name of the WLM application environment that you set up for the web services consumer user-defined functions. Start of changeThe name of this environment must match the WLMENV parameter value in the configuration control statement for each stored procedure in job DSNTIJRT.End of change
    3. Change the value of DB2SSN to your DB2 subsystem name.
    4. Add the data set name of the XML Toolkit load library (XPLINKed version) to the STEPLIB concatenation. If you used the default data set names when you installed the XML Toolkit, the load library data set name is userid.SIXMLOD1.
    5. Ensure that the DB2 SDSNLOD2 library is added to the STEPLIB.
  2. After you set up the WLM application environment, create a JCL startup procedure for the stored procedure address space.