Rational Developer for System z

Mapping editor

This topic describes the mapping editor for the single-service project tools.

In the mapping editor you create a mapping by connecting an item on the left side of the editor (the source of the mapping) to an item on the right side of the editor (the target of the mapping). At runtime when the mapping is performed the data in the source element is converted to the target format and stored in the target element.

In a request session the XML structure is displayed on the left side of the editor and the COBOL data structure is displayed on the right side of the editor. In a response session the positions are reversed: COBOL or PL/I on the left side; XML on the right side.

An element on the left side is called a sender element. An element on the right side is called a receiver element. A sender element and a receiver element can be mapped together only if they have type compatibility (see XML to COBOL mapping reference).

The mapping editor supports one-to-one mapping, that is, mapping that goes between one simple or complex XML structure and one compatible COBOL or PL/I element or structure. You can have multiple one-to-mappings in one session. The mapping editor does not support one-to-many mapping or many-to-many mapping.

For both COBOL and PL/I you can map an XML element to a language variable or data structure. For COBOL only you can also map an XML attribute to a language variable or data structure. (For XML attributes see the limitations described in Mapping XML attributes to COBOL with Compiled XML Conversion.)


Terms of use | Feedback

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