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 Parameter Data Type |
XML Schema Data Type |
---|---|
Handle |
Not supported |
String |
|
XML Stream |
|
Numeric |
|
Float |
|
Boolean |
|
Raw |
|
Image |
|
Date |
|
Time |
|
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:
Data type and packing code for Uniface fields |
XML schema data type |
---|---|
Boolean (B) B* |
|
String (S) |
|
Raw (R) |
|
Image (I) |
|
Numeric (N) I1 no scaling |
|
Numeric (N) I2 no scaling |
|
Numeric (N) I4 no scaling |
|
Numeric (N) I8 no scaling |
|
Numeric (N) I16 no scaling |
|
Numeric (N) I with scaling |
|
Numeric (N) C1-C2 no scaling, N1-N2, O1-O2 |
|
Numeric (N) C3-C4 no scaling, N3-N4, O3-O4 |
|
Numeric (N) C5-C9 no scaling, N5-N9, O5-O9 |
|
Numeric (N) C10-C18 no scaling, N10-N18, O10-O18 |
|
Numeric (N) C19-C32 no scaling, N19-N32, O19-O32 |
|
Numeric (N) M* |
|
Numeric (N) P1 Q1 no scaling |
|
Numeric (N) P2 Q2 no scaling |
|
Numeric (N) P3-P4 Q3-Q4 no scaling |
|
Numeric (N) P5-P8 Q5-Q8 no scaling |
|
Numeric (N) P1-P4 Q1-Q4 C1-C7 with scaling |
|
Numeric (N) P5-P7 Q5-Q7 C8-C13 with scaling |
|
Numeric (N) P8 Q8 C14-C32 with scaling |
|
Numeric (N) others |
|
Float (F) F4 H4 C1-C7 |
|
Float (F) F8 G8 H8 C8-C14 no scaling |
|
Float (F) C with scaling |
|
Float (F) others |
|
Date (D) D* |
|
Time (T) T* |
|
Datetime (E) E* |
|
Linear Date (LD) |
string |
Linear Time (LT) |
string |
Linear Datetime (LE) |
string |