Data Type Mapping for Web Service Call-In

Uniface data types differ from the data types defined in the XML Schema Definition (XSD). To support Uniface Web service call-in, the Uniface data types must be mapped to the XML schema data types.

The following table shows the mappings between the simple Uniface parameter data types and XML schema data types for Web service call-in:

Uniface Simple Parameters-XML Schema Data Type Mappings for Web Service Call-In

Uniface Simple Parameter Data Type

XML Schema Data Type

Handle

Not supported

String

string

XML Stream

string

Numeric

decimal

Float

double

Boolean

boolean

Raw

base64Binary

Image

base64Binary

Date

date

Time

time

Datetime

dateTime

Linear Date

string

Linear Time

string

Linear Datetime

string

If the Uniface data type is Entity or Occurrence, Uniface maps it to an XML schema data structure. In this structure, each field of the entity or occurrence is mapped into an XML schema data type, as described in the following table:

Uniface Fields in Entities-XML Schema Data Type Mappings for Web Service Call-In

Data type and packing code for Uniface fields

XML schema data type

Boolean (B) B*

boolean

String (S)

string

Raw (R)

base64Binary

Image (I)

base64Binary

Numeric (N) I1 no scaling

byte

Numeric (N) I2 no scaling

short

Numeric (N) I4 no scaling

int

Numeric (N) I8 no scaling

long

Numeric (N) I16 no scaling

integer

Numeric (N) I with scaling

decimal

Numeric (N) C1-C2 no scaling, N1-N2, O1-O2

byte

Numeric (N) C3-C4 no scaling, N3-N4, O3-O4

short

Numeric (N) C5-C9 no scaling, N5-N9, O5-O9

int

Numeric (N) C10-C18 no scaling, N10-N18, O10-O18

long

Numeric (N) C19-C32 no scaling, N19-N32, O19-O32

integer

Numeric (N) M*

decimal

Numeric (N) P1 Q1 no scaling

byte

Numeric (N) P2 Q2 no scaling

short

Numeric (N) P3-P4 Q3-Q4 no scaling

int

Numeric (N) P5-P8 Q5-Q8 no scaling

long

Numeric (N) P1-P4 Q1-Q4 C1-C7 with scaling

decimal

Numeric (N) P5-P7 Q5-Q7 C8-C13 with scaling

decimal

Numeric (N) P8 Q8 C14-C32 with scaling

decimal

Numeric (N) others

decimal

Float (F) F4 H4 C1-C7

float

Float (F) F8 G8 H8 C8-C14 no scaling

double

Float (F) C with scaling

decimal

Float (F) others

double

Date (D) D*

date

Time (T) T*

time

Datetime (E) E*

dateTime

Linear Date (LD)

string

Linear Time (LT)

string

Linear Datetime (LE)

string