WebService Behavior: Supported Data Types
This topic documents a feature of Binary Behaviors, which are obsolete as of Internet Explorer 10.
This document describes the ASP.NET and XML data types supported by the WebService behavior.
The following topics are discussed in this document.
- Data Types
- Interoperability
- Related Topics
Data Types
The following table lists the ASP.NET and XML data types supported by the WebService behavior. The first column shows the ASP.NET data type. This is the data type of the returned value from a method of a Web Service class. The second column lists the corresponding names of the XML data type. The final column indicates whether this data type is supported by the WebService behavior.
ASP.NET data type | XML data type | Supported |
---|---|---|
string | string | Yes |
boolean | boolean | Yes |
float(single) | float | Yes |
double | double | Yes |
decimal | decimal | Yes |
long | long | Yes |
int | int | Yes |
short | short | Yes |
byte | unsignedByte | Yes |
ulong | unsignedLong | Yes |
uint | unsignedInt | Yes |
ushort | unsignedShort | Yes |
sbyte | byte | Yes |
DateTime | date | Yes |
DateTime | time | Yes |
DateTime/Date | timeInstant | Yes |
String[] | ArrayOfString | Yes |
boolean[] | ArrayOfBoolean | Yes |
float[] | ArrayOfFloat | Yes |
double[] | ArrayOfDouble | Yes |
decimal[] | ArrayOfDecimal | Yes |
long[] | ArrayOfLong | Yes |
int[] | ArrayOfInt | Yes |
short[] | ArrayOfShort | Yes |
Note Most of the ASP.NET data types included in the table are for C#. Other ASP.NET languages do not support all of the C# data types. In many cases, the names of data types in the other ASP.NET languages are different as well.
In addition to the entries in the table, other data types supported by ASP.NET Web services are also supported by the WebService behavior. XML objects, classes, structures, arrays of structures, and arrays of primitive data types can be returned from Web services, and the WebService behavior exposes them as scriptable objects, which can be referenced from the result object.
Interoperability
The WebService behavior works with Web Services that support SOAP and Web Services Description Language (WSDL) 1.1. Several organizations are developing products based on these standards. The Microsoft .Net Frameworks SDK supports WSDL 1.1 and SOAP, and so do the following products.