Rational Developer for System z

Mapping sessions

In a Web service or XML-enabled enterprise application, XML data can flow in and out of a COBOL program. Therefore, with respect to the direction of the data flow, the request mapping applies to an XML document entering the COBOL program and the response mapping applies to the XML document leaving the COBOL program. In a generic case, request and response mappings are different.

Creation of mappings is referred to as mapping session. During a mapping session a single mapping session file is produced, which contains mapping metadata (information). This mapping metadata represents such information as names of the source files (such as a COBOL file or an XML document) for the mapped entities, location of the mapped elements and items within those files etc. Request and response sessions have separate session files.

You start a mapping session by running the New XML to COBOL Mapping wizard and creating a mapping session file. You can then open and customize mapping session files by using the mapping editor.

Because the mapping session file contains links to the COBOL and XML files relative to the workbench project, these links may not resolve correctly when you move the mapping session file. Use caution when moving the mapping session file from the directory where it was created (relative to the workbench project) or when importing already existing mapping session files into the workbench. In general, moving or importing the mapping session file will only work if the file is moved or imported into a similar directory structure (relative to the workbench project) with similar subdirectory names.

The request mapping session starts when you select an XML related file (WSDL, XML or XSD) as your source file. This selection will define the selection of your target file as being of COBOL type.

The response mapping session starts when you select a COBOL file as your source file. This selection will define the selection of your target file as being of XML-related type (WSDL, XML or XSD).

Related tasks

Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)