Rational Developer for System z

Generating a conversion program from mapping session files

This topic describes the conversion program created by the Generate Conversion Code wizard.

The Generate Conversion Code wizard takes either one or two mapping files as input and creates the following files as output:
The generated COBOL or PL/I source code file contains a program for converting data from XML format to an equivalent high-level-language data structure, and also for converting data from a (possibly different) high-level-language data structure to an equivalent XML format. This program has three main procedures:
These conversion procedures can be used to enable a Web service provider or requester to invoke and get data from an existing CICS® application. For example, in the case of a Web service provider:
  1. The Web service receives a request in XML format for information about a particular customer ID.
  2. The Web service calls the conversion program to the convert the request from XML format to the high-level-language format expected by the existing CICS application.
  3. The Web service calls the CICS application, passing it the request.
  4. The CICS application returns with the requested information in a high-level-language data structure.
  5. The Web service calls the conversion program to convert the customer information to XML format.
  6. The Web service returns the customer information to the remote caller.


Feedback