Try OpenEdge Now
skip to main content
Web Services
Data Type Conversion Rules for ABL Calls to OpenEdge SOAP Web Services : Data type casting
 

Data type casting

OpenEdge supports a set of alternative ABL data types (in addition to a suggested data type) to represent the value for an XML Schema data type in ABL. These alternative data types essentially force the Web service invocation to cast the value between the specified native ABL representation and the corresponding XML Schema data type. The result of this casting might not preserve as much accuracy as the suggested mapping.
The following table shows all the supported castings (alternative mappings) between the XML Schema and ABL data types. The suggested ABL data type mapping for each XML Schema type appears in bold font.
Note: OpenEdge supports no castings for the RECID, ROWID, or HANDLE ABL data types.
Table 61. Supported casts between data types
XML Schema data type
ABL data type
anyURI
CHARACTER
LONGCHAR
base64Binary
CHARACTER
LONGCHAR
MEMPTRRAW
boolean
CHARACTER
DECIMAL
INT64
INTEGER
LOGICAL
LONGCHAR
byte
CHARACTER
DECIMAL
INT64
INTEGER
LOGICAL
LONGCHAR
date
CHARACTER
DATE
DATETIME
DATETIME-TZ
dateTime
CHARACTER
DATE
DATETIME
DATETIME-TZ
decimal
CHARACTER
DECIMAL
INT64
INTEGER
LOGICAL
LONGCHAR
double
CHARACTER
DECIMAL
INT64
INTEGER
LOGICAL
LONGCHAR
duration
CHARACTER
LONGCHAR
ENTITIES
CHARACTER
LONGCHAR
ENTITY
CHARACTER
LONGCHAR
float
CHARACTER
DECIMAL
INT64
INTEGER
LOGICAL
LONGCHAR
gDay
CHARACTER
LONGCHAR
gMonth
CHARACTER
LONGCHAR
gMonthDay
CHARACTER
LONGCHAR
gYear
CHARACTER
LONGCHAR
gYearMonth
CHARACTER
LONGCHAR
hexBinary
CHARACTER
LONGCHAR
MEMPTRRAW
ID
CHARACTER
LONGCHAR
IDREF
CHARACTER
LONGCHAR
IDREFS
CHARACTER
LONGCHAR
int
CHARACTER
DECIMAL
INT64
INTEGER
LOGICAL
LONGCHAR
integer
CHARACTER
DECIMAL
INT64
INTEGER
LOGICAL
LONGCHAR
Language
CHARACTER
LONGCHAR
long
CHARACTER
DECIMAL
INT64
INTEGER
LOGICAL
LONGCHAR
Name
CHARACTER
LONGCHAR
NCName
CHARACTER
LONGCHAR
negativeInteger
CHARACTER
DECIMAL
INT64
INTEGER
LONGCHAR
NMTOKEN
CHARACTER
LONGCHAR
NMTOKENS
CHARACTER
LONGCHAR
nonNegativeInteger
CHARACTER
DECIMAL
INT64
INTEGER
LOGICAL
LONGCHAR
nonPositiveInteger
CHARACTER
DECIMAL
INT64
INTEGER
LOGICAL
LONGCHAR
normalizedString
CHARACTER
DATE
DATETIME
DATETIME-TZ
DECIMAL
INT64
INTEGER
LOGICAL
LONGCHAR
NOTATION
CHARACTER
LONGCHAR
positiveInteger
CHARACTER
DECIMAL
INT64
INTEGER
LONGCHAR
qName
CHARACTER
LONGCHAR
short
CHARACTER
DECIMAL
INT64
INTEGER
LOGICAL
LONGCHAR
string
CHARACTER
DATE
DATETIME
DATETIME-TZ
DECIMAL
INT64
INTEGER
LOGICAL
LONGCHAR
time
CHARACTER
INT64
INTEGER
LONGCHAR
token
CHARACTER
LONGCHAR
unsignedByte
CHARACTER
DECIMAL
INT64
INTEGER
LOGICAL
LONGCHAR
unsignedInt
CHARACTER
DECIMAL
INT64
INTEGER
LOGICAL
LONGCHAR
unsignedLong
CHARACTER
DECIMAL
INT64
INTEGER
LOGICAL
LONGCHAR
unsignedShort
CHARACTER
DECIMAL
INT64
INTEGER
LOGICAL
LONGCHAR