Mapping XML Data Types to OutSystems Data Types
When consuming SOAP Web Services in your module, OutSystems maps the XML Data Types into OutSystems Data Types as follows:
XML Data Types | OutSystems Data Types |
---|---|
anySimpleType anyType anyURI |
Text Text Text |
bool boolean base64Binary byte bytev |
Boolean Boolean Binary Integer Integer |
char | Integer |
date dateTime decimal double duration |
Date Date Time Decimal Decimal Text |
ENTITY ENTITIES Enumerate values |
Text Text Static Entity Identifier |
float | Decimal |
gDay gMonth gMonthDay gYearMonth gYear |
Text Text Text Text Text |
hexBinary | Binary |
ID IDREF IDREFS int integer |
Text Text Text Integer Text |
language long |
Text Long Integer |
Microsoft Datasets | Text |
Name NCName negativeInteger NMTOKEN NMTOKENS nonNegativeInteger nonPositiveInteger normalizedString NOTATION |
Text Text Text Text Text Text Text Text Text |
Object | Text |
positiveInteger | Text |
QName | Text |
short signed byte string |
Integer Integer Text |
time token |
Time Text |
unsignedByte unsignedInt unsignedLong unsignedShort |
Integer Long Integer Text Integer |
XML Element | Text |
XSD Arrays | List In OutSystems, a List is a sequence of elements of any data type. Therefore, an XSD array is mapped into a list of records which elements are a structure that represents those elements in the XSD array. If you have an XSD array of integers, the mapping in Service Studio is a List of structures with one attribute of type Integer. |
XSD Complex data types | Record |
(Other types) | Text |
Mapping Limitations
- Types created via "restriction" over another type are usually the same as the original type. Only the
maxLength
andfractionDigits
restrictions are considered when creating the appropriate data types, but these restrictions are not enforced at runtime. - Type
element
having subtypeschema
(i.e. dynamic schemas) is interpreted as a simple Text item. - Type
simpleType
having subtype that is not "restriction" (such aslist
, a space-separated sequence of text atoms) is interpreted as a simple Text item. - Type
complexType
having subtype that is notsequence
,all
orcomplexContent
is interpreted as a simple Text item. - Subtype
complexContent
that is not "restriction" or "extension" is interpreted as a simple Text item. - SOAP Web Service annotations are ignored.