2.4.2 XML Schema User Defined Data Type Mapping
The following lists the supported XML Schema User Defined Simple Data Type and the corresponding Oracle Tuxedo
FML32
Field Data Type.
Table 2-7 Supported XML Schema User Defined Data Type
XML Schema User Defined Data Type | Oracle Tuxedo FML32 Field Data Type | C/C++ Primitive Type In Oracle Tuxedo Program | Note |
---|---|---|---|
<xsd:anyType>
|
FLD_MBSTRING |
char [] | You should prepare entire XML document enclosing with the element tag. |
<xsd:simpleType> derived from built-in primitive simple data types |
Equivalent FML32 Field Type of the primitive simple type see Table 2-3)
|
Equivalent C Primitive Data Type of the primitive simple type Table 2-3 | Facets defined with <xsd:restriction> are not enforced in Oracle Tuxedo.
|
<xsd:simpleType>defined with <xsd:list> |
FLD_MBSTRING
|
char [] |
Same as <xsd:anyType> . The Schema compliance is not enforced in Oracle Tuxedo.
|
<xsd:simpleType> defined with <xsd:union> |
FLD_MBSTRING
|
char [] |
Same as <xsd:anyType> . The Schema compliance is not enforced in Oracle Tuxedo.
|
<xsd:complexType> defined with <xsd:simpleContent> |
FLD_MBSTRING
|
char [] |
Same as <xsd:anyType> . The Schema compliance is not enforced in Oracle Tuxedo.
|
<xsd:complexType> defined with <xsd:complexContent> |
FLD_MBSTRING
|
char [] |
Same as <xsd:anyType> . The Schema compliancy is not enforcedin Oracle Tuxedo.
|
<xsd:complexType>defined with shorthand <xsd:complexContent>, sub-elements composited with sequence or all |
FLD_FML32
|
FBFR32 * embedded fml32 buffer |
Each sub-element of the complex type is defined as an embedded FML32 field.
|
<xsd:complexType> defined with shorthand <xsd:complexContent>, sub-elements composited with choice |
FML_FML32
|
FBFR32 * embedded fml32 buffer |
Each sub-element of the complex type is defined as an embedded FML32 field.
You should only add one sub field into the fml32 buffer. |
<xsd:complexType> with sub-elements composited with sequence. The complexType can contain attribute and elements.
|
FLD_FML32
|
FBFR32 * embedded fml32 buffer |
Each sub-element of the complex type is defined as an embedded FML32 field.
|
The following samples demonstrate how to prepare data in an Oracle Tuxedo program for XML Schema User Defined Data Types:
Table 2-8 XML Schema User Defined Type Sample - xsd:simpleType Derived from Primitive Simple Type
XML Schema Definition | |
---|---|
- |
|
Corresponding FML32 Field Definition (FLD_STRING) | |
- | # Field_name Field_type Field_flag Field_comments Grade string - |
C Pseudo Code | |
- |
|
Table 2-9 XML Schema User Defined Type Sample - xsd:simpleType Defined with xsd:list
XML Schema Definition (Target Namespace “urn:sample.org”) | |
---|---|
- |
|
Corresponding FML32 Field Definition (FLD_MBSTRING) | |
- |
|
C Pseudo Code | |
- |
|
Note:
In the following table, attributes are supported in External Web Services calls using the form"<xs:attribute name="[name]" type="[type]"/>"
only. Qualifiers such as "fixed="
are currently not supported."
Table 2-10 External Service Schema Attribute Use Example
XML Schema Definition | |
---|---|
- |
|
Corresponding FML32 Field Definition | |
- |
|
Corresponding SALT Metadata Repository Definition | |
- |
|
Corresponding Sample Pseudo code | |
- |
|