2.5.2.3 XML Data Mapping
Note:
- Floating point numbers without decimal value get represented as integers, for example: 10.0 is printed as 10. This is currently a limitation.
- No namespaces is generated or processed, since HTTP mode does not use interfaces.
- Simple buffers (
STRING
,CARRAY
,MBSTRING
, and XML) are sent and received as is, without any XML processing. The behavior is identical to JSON processing (i.e.,no mapping is necessary. FML
andFML32
requests must be wrapped by a root element (which name is ignored, as long as the XML is formed properly), and replies are wrapped in an element with the same name as the subtype as specified in theHTTP/Service/@outputbuffer
attribute of theSALTDEPLOY
configuration file, or<root>
element if subtype is not configured.VIEW
, VIEW32,X_COMMON
, andX_C_TYPE
buffers use the subtype name as the root element name.
The different Oracle Tuxedo buffer types are converted into/from XML in the following manner as shown in table below:
Table 2-17 XML Data Mapping
Oracle Tuxedo Buffer Type | Description | HTTP XML Mapping Example |
---|---|---|
STRING
|
Oracle Tuxedo STRING typed buffers are used to store character strings that terminate with a NULL character. Oracle Tuxedo STRING typed buffers are self-describing.
|
HELLO WORLD! |
CARRAY
|
Oracle Tuxedo CARRAY typed buffers store character arrays, any of which can be NULL . CARRAY buffers are used to handle data opaquely and are not self-describing.
|
Binary content |
MBSTRING
|
Oracle Tuxedo MBSTRING typed buffers are used for multibyte character arrays. Oracle Tuxedo MBSTRING buffers consist of the following three elements:
- Code-set character encoding - Data length - Character array of the encoding. In order to transmit encodings other than UTF-8, the " |
Multi-byte string encoded according to Content-Type setting. |
XML
|
Oracle Tuxedo XML typed buffers store XML documents.
The GWWS server validates that the actual XML data is well-formed. It will not do any other enforcement validation, such as Schema validation. Only a single root Any original XML document prologue information cannot be carried within the payload. In order to transmit encodings other than |
XML fragment as-is |
X_C_TYPE
|
Same as VIEW/VIEW32
|
- |
X_COMMON
|
Same as VIEW/VIEW32
|
- |
X_OCTET
|
Same as CARRAY
|
- |
VIEW/VIEW32
|
Oracle Tuxedo VIEW and VIEW32 typed buffers store C structures defined by Oracle Tuxedo applications.
VIEW supports the following field types:
|
|
- | VIEW32 supports all the VIEW field types, mbstring , and embedded VIEW32 type.
The name of the sub-element is the |
- |
FML/FML32
|
Oracle Tuxedo FML and FML32 type buffers are proprietary Oracle Oracle Tuxedo system self-describing buffers. Each data field carries its own identifier, an occurrence number, and possibly a length indicator.
FML supports the following field types:
|
Nested FLD_VIEW32 : the name of the view subtype must be the name of the embedded VIEW32 . For Example:
|
RECORD
|
RECORD buffer type represents copybook record. RECORD types must have subtypes that designate individual record structures.
Generated COBOL types:
|
|
Note:
Non-structured buffer types (STRING
, CARRAY
, X_OCTET
and MBSTRING
) will not wrap data as XML objects, the data is transmitted as is.