The following table describes the supported castings in each ABL parameter mode (INPUT and OUTPUT) between the ABL INTEGER type and XML Schema.

Table 1. ABL data type cast—INTEGER
For this XML Schema type . . . In this ABL parameter mode . . . OpenEdge . . .
string normalizedString INPUT Serializes the ABL parameter into the XML Schema value as if the ABL STRING( ) function was called on the INTEGER value.
OUTPUT De-serializes the XML Schema value as if the INTEGER( ) function was called on string value.
boolean INPUT Serializes an INTEGER value of 0 to false and all other values to true.
OUTPUT De-serializes a value of false to an ABL INTEGER value of 0, and de-serializes a value of true to an INTEGER value of 1.
decimal INPUT Serializes the ABL parameter into the SOAP request message according to the XML Schema serialization rules.
OUTPUT De-serializes the XML Schema value as if the INTEGER( ) function was called on the serialized ABL DECIMAL value. This rounds any positions after the decimal point. If the XML Schema decimal value is outside the range of an ABL INTEGER, the AVM raises a run-time error.
float INPUT Serializes the ABL INTEGER value to a float according to the XML Schema rules. Some of the least significant digits of the INTEGER value are lost if the number of digits in the value is large.
OUTPUT De-serializes the XML Schema value into an ABL INTEGER. If the XML Schema value overflows or underflows an ABL INTEGER, the AVM raises a run-time error.
double INPUT Serializes the ABL INTEGER value to a double according to the XML Schema rules.
OUTPUT De-serializes the XML Schema value into an ABL INTEGER. If the XML Schema value overflows or underflows an ABL INTEGER, the AVM raises a run-time error.
integer
nonPositiveInteger
negativeInteger
long
nonNegativeInteger
unsignedLong
unsignedInt
positiveInteger
INPUT Serializes the ABL parameter into the SOAP request message according to the serialization rules for the XML Schema data type.
OUTPUT De-serializes the XML Schema value as if the ABL INTEGER( ) function was called on the value. If the XML Schema value is outside the valid range of an ABL INTEGER, the AVM raises a run-time error.
int INPUT Serializes the ABL parameter into the SOAP request message according to the XML Schema serialization rules.
OUTPUT De-serializes the XML Schema value as if the ABL INTEGER( ) function was called on the value.
short
byte
unsignedShort
unsignedByte
INPUT Serializes the ABL parameter into the SOAP request message according to the serialization rules for the XML Schema data type. If the ABL INTEGER value is outside the valid range of the XML Schema type, the AVM raises a run-time error.
OUTPUT De-serializes the XML Schema value as if the ABL INTEGER( ) function was called on the value.
time INPUT Serializes the ABL parameter into the SOAP request message according to the XML Schema serialization rules without a time zone. The ABL INTEGER value is treated as the number of seconds since midnight.
OUTPUT De-serializes the XML Schema value to the number of seconds since midnight. The conversion loses fractions of seconds. If a time zone is specified in the value, the time is adjusted to the same instant in the local time zone.