Utility programs DFHLS2WS and DFHWS2LS support mappings between C and C++ data types and the XML Schema definitions that are included in each Web service description.
For example, monthly-total becomes monthlyXtotal.
For example, two instances of year become year and year1.
C and C++ data type | Schema simpleType |
---|---|
char[z] |
|
char |
|
unsigned char |
|
short |
|
unsigned short |
|
int |
|
unsigned int |
|
long long |
|
unsigned long long |
|
bool (C++ only) |
|
float |
|
double |
|
For example, monthly-total becomes monthlyXtotal.
For example, 6monthlysummary becomes X6monthlysummary.
For example, two instances of year become year and year1.
For more information,
see Variable arrays of elements.
The nillable attribute has special rules. The prefix attr_ is added, but nil_ is also added to the beginning of the element name. The element name is followed by _value. If the total length is longer than 28 characters, the element name is truncated.
Schema simpleType | Mapping level 1.0 and 1.1 | Mapping level 1.2 |
---|---|---|
|
Not supported |
Not supported |
|
char[255] |
char[255] |
where type is one of:
|
char[z] |
char[z] |
where type is one of:
|
char[32] |
char[32] |
|
signed char |
signed char |
|
char |
char |
|
short |
short |
|
unsigned short |
unsigned short |
![]()
![]() |
![]() char[33] ![]() |
![]() char[33] ![]() |
|
int |
int |
|
unsigned int |
unsigned int |
|
long long |
long long |
|
unsigned long long |
unsigned long long |
|
bool (C++ only) |
bool (C++ only) |
|
char[255] |
char[255] |
|
char[255] |
char[255] |
where the length is not defined |
char[y] where y =4×(ceil(z/3)). ceil(x) is the smallest integer greater than or equal to x |
char[z] where the length is fixedchar[16] is the name of the container that stores the binary data when the length is not defined |
|
char[32] |
float(*) |
|
char[32] |
double(*) |