Data Type Mapping for Web Service Call-Out

A web service can contain any of the data types defined in the XML Schema Definition (XSD). This includes data types that Uniface does not support. The Uniface WSDL import facility maps each XML schema data type into a Uniface data type.

After importing a WSDL, you can modify the interface of the Uniface data type for each parameter, as long as it remains compatible with the Uniface data type. For example, change the length of a String parameter.

If you used the /gen switch when importing the WSDL, the parameter descriptions of complex parameters contains sample XML code that documents what is required for the parameter.

Note:  Complex XML Schema data types should be treated as completely self-contained—if any element of a complex parameter requires a specific XML namespace, you need to ensure that each namespace is explicitly defined. For more information, see Complex Nested Parameters.

The following tables show the default mappings between Uniface and XML schema data types for Web service call-out.

Data Type Mapping Between XSD and Uniface for Web Service Call-Out
Simple XML Schema Data Type Uniface Data Type and Interface
string String C40
integer Numeric I16
int Numeric I4
long Numeric I8
short Numeric I2
decimal Numeric C32
float Float F4
double Float F8
boolean Boolean B
byte Numeric I1
unsignedInt Numeric I8
unsignedShort Numeric I4
unsignedByte Numeric I2
QName String C40
dateTime Datetime E
date Date D
time Time T
anyURI String C40
base64Binary Raw R*V4
hexBinary Raw R*V4
anySimpleType String C40

Derived
Simple XML Schema Data Type

Uniface Data Type and Interface

duration String C40
gYearMonth String C40
gYear String C40
gMonth String C40
gDay String C40
gMonth String C40
normalizedString String C40
token String C40
language String C40
Name String C40
NCName String C40
id String C40
NMTOKEN String C40
NMTOKENS String C40
nonPositiveInteger Numeric C32
negativeInteger Numeric C32
nonNegativeInteger Numeric C32
unsignedLong Numeric C32
positiveInteger Numeric C32
.NET Derived
Simple XML Schema Data Type
Uniface Data Type and Interface
char String W1

Related Topics