XML request and response processing
You are recommended to use IBM® Developer for z/OS® or the CICS Web services assistant as the strategic method for parsing modeled requests. This approach provides XML parsing and generation for both the request header and body.
The CICS Web services assistant is described in detail in The CICS web services assistant. For information on using the tooling to perform XML processing, see the IBM Developer for z/OS help that is provided with the tool.
For backwards compatibility, CICS Service Flow Runtime provides an internal XML parsing function, which is nonstrategic.
XML request and response support consists of two main functions:
- The XML parsing function parses an inbound XML request message and maps XML elements to a fixed format COMMAREA.
- The XML generation function generates an XML response message from a fixed format COMMAREA.

In the runtime environment, the processing associated with XML request and response messages varies according to the way the service requester incorporates the XML into the request message. The request message can be divided into two main parts, the message header DFHMAH and the application data. For more information, see Sending the request message in a COMMAREA.
| XML location | Supported |
|---|---|
| In the message header and in the application data | Yes |
| In the application data only | Yes |
| In the message header only | No |