Export (0) Print
Expand All

Supported Types in XML Web Services Created with ATL Server 

The table in this topic shows the data types supported by the ATL Server SOAP attributes along with the corresponding XML Schema data type and the C++ data type that SPROXY will use in the SOAP clients that it generates. Types that are supported on the server that result in a slightly different type at the client are italicized:

C++ data type (SOAP Attributes) XML Schema data type C++ data type (SPROXY)

bool

boolean

bool

char

byte

char

__int8

byte

char

unsigned char

unsignedByte

unsigned char

unsigned __int8

unsignedByte

unsigned char

short

short

short

__int16

short

short

unsigned short

unsignedShort

unsigned short

unsigned __int16

unsignedShort

unsigned short

wchar_t

unsignedShort

unsigned short

int

int

int

__int32

int

int

long

int

int

unsigned int

unsignedInt

unsigned int

unsigned __int32

unsignedInt

unsigned int

unsigned long

unsignedInt

unsigned int

__int64

long

__int64

unsigned __int64

unsignedLong

unsigned __int64

double

double

double

float

float

float

BSTR

string

BSTR

ATLSOAP_BLOB

base64Binary

ATLSOAP_BLOB

Enumerations and arrays and structures of these types are also supported by the ATL Server SOAP attributes.

Note the following:

  • BSTR is the only string type that is supported. Other string types (such as LPCSTR) will be represented as arrays or pointers of byte or unsignedShort.

  • An enumeration is represented as string values in accordance with the SOAP specification.

  • A member of a structure or array may be an array, a structure, or a simple type. It must not be a pointer. (In other words, pointer members can only be used for conformant arrays that use the size_is attribute).

See Types Supported By SPROXY for the full list of types that can be understood by that tool.

Marshaling Attributes Understood by SOAP Attributes

These attributes are supported by ATL Server for parameters on a method exposed by an XML Web service:

Members of a structure may also use the size_is attribute.

See Also

Community Additions

ADD
Show:
© 2014 Microsoft