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

DECIMAL

The following table describes the supported castings in each ABL parameter mode (INPUT and OUTPUT) between the ABL DECIMAL type and XML Schema.
Table 66. ABL data type cast—DECIMAL
For this XML Schema type . . .
In this ABL parameter mode . . .
OpenEdge . . .
string normalizedString
INPUT
Serializes the ABL parameter into the SOAP request message according to the XML Schema serialization rules.
OUTPUT
De-serializes the string value from the SOAP response message into the ABL parameter as if the ABL DECIMAL( ) function was called on the string.
boolean
INPUT
Serializes an ABL DECIMAL value of 0 to false and all other values for the ABL parameter to true.
OUTPUT
De-serializes a value of false to an ABL DECIMAL value of 0, and de-serializes a value of true to a DECIMAL 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 into the ABL parameter according to the XML Schema serialization rules. If the XML Schema decimal value overflows the ABL DECIMAL, the AVM raises a run-time error.
float double
INPUT
Serializes the ABL DECIMAL value according to XML Schema serialization rules. Some of the least significant digits might be lost.
OUTPUT
De-serializes the XML Schema value to the equivalent ABL DECIMAL value. If the value is outside the range of the ABL DECIMAL, the AVM raises a run-time error.
integer
nonPositiveInteger
negativeInteger
long
int
short
byte
nonNegativeInteger
unsignedLong
unsignedInt
unsignedShort
unsignedByte
positiveInteger
INPUT
Rounds the ABL DECIMAL value to an integer and serializes the result based on the serialization rules for the XML Schema type. Data might be lost. If the DECIMAL 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 into the ABL parameter as if the ABL DECIMAL( ) function was called on the value. If the value in the SOAP response message is outside the range of the DECIMAL type, the AVM raises a run-time error.