Mapping and transforming application data and XML
You can write application programs to transform application binary data into XML and vice versa. CICS® supports a number of high-level languages and provides an XML assistant to map how the data is transformed during runtime processing. CICS uses the same technology for mapping application data to XML in SOAP messages, as part of the web services support.
Before you begin
About this task
The advantage of using this approach to transform application data to and from XML is that CICS goes beyond the capabilities offered by an XML parser. CICS can interpret the XML and perform record-based conversions of the application data. Therefore, it is easier and faster for you to create applications that work with XML using this approach.
The CICS XML assistant is a supplied utility that helps you to create the required artifacts to transform application binary data to XML or transform XML to application binary data. The XML assistant can create the artifacts in a bundle directory or another specified location on z/OS® UNIX.
Procedure
- Create the mappings using the XML assistant.
- Create the resources in CICS to make the mappings available.
- Create or update an application program to use the TRANSFORM API
command. The application must use a channel-based interface.
- Run the application to test that the transformation works
as you intended. You can turn on validation to check that CICS converts the data correctly.