Previous Topic: ABRT_xcall_ws_gentype_truncate_exit —CALL EXTERNAL Data TruncationNext Topic: Arguments


Purpose

By default, when the size of the web service response is greater than the matched Gen data type, the response is truncated. The truncation is governed by the table below.

Use this user exit to override the default behavior. The user exit sets the matched Gen data type flag so that the response is not truncated but an error is raised instead.

ABRT XCall WS Gentype Truncation Table:

The following table depicts the default behavior. The user exit sets the flag represented in the Overrides the Flag column. The default behavior overrides the flag.

XSD data type

(from)

Gen data type

(to)

Default truncation behavior

Overrides the flag

string

Text

Data truncated to fit in destination size.

GENTYPE_TEXT

string

BLOB

Data truncated to fit in destination size.

GENTYPE_BLOB

anyURI

Text

Data truncated to fit in destination size.

GENTYPE_TEXT

QName

Text

Data truncated to fit in destination size.

GENTYPE_TEXT

NOTATION

Text

Data truncated to fit in destination size.

GENTYPE_TEXT

duration

Text

Data truncated to fit in destination size.

GENTYPE_TEXT

base64Binary

Text

Data truncated to fit in destination size.

GENTYPE_TEXT

base64Binary

BLOB

Data truncated to fit in destination size.

GENTYPE_BLOB

hexBinary

Text

Data truncated to fit in destination size.

GENTYPE_TEXT

hexBinary

BLOB

Data truncated to fit in destination size.

GENTYPE_BLOB

float

Number (length <= 15,

decimal points !=0,

decimal precision = false)

Data will be truncated at decimal places.

GENTYPE_NUMERIC_DOUBLE

double

Number (length <= 15,

decimal points !=0,

decimal precision = false)

Data will be truncated at decimal places.

GENTYPE_NUMERIC_DOUBLE

decimal

Number (length <=18,

decimal precision =true)

Data will be truncated at decimal places

and other truncation results in Error.

GENTYPE_NUMERIC_PRECISION

short

unsignedshort

Number (length <= 4)

Data will be truncated if it is > SHORT_MAX

GENTYPE_NUMERIC_SHORT

integer

long

int

nonPositiveInteger

nonNegativeInteger

negativeInteger

positiveInteger

unsignedLong

unsignedInt

Number (length <= 9)

Data will be truncated if it is > LONG_MAX

GENTYPE_NUMERIC_LONG

Note: Data map pairs which are not mentioned in the table are not considered for truncation. The following XSD data types are not truncated:

For example, when the web service response of XSD datetime data type are mapped to Text, the response is not truncated.