Click to Rate and Give Feedback
MSDN
MSDN Library
Web Development
HTML and CSS
DHTML Behaviors
WebService Behavior
Overviews/Tutorials
 WebService Behavior: Supported Data...
WebService Behavior: Supported Data Types

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

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 typeXML data typeSupported
stringstringYes
booleanbooleanYes
float(single)floatYes
doubledoubleYes
decimaldecimalYes
longlongYes
intintYes
shortshortYes
byteunsignedByteYes
ulongunsignedLongYes
uintunsignedIntYes
ushortunsignedShortYes
sbytebyteYes
DateTimedateYes
DateTimetimeYes
DateTime/DatetimeInstantYes
String[]ArrayOfStringYes
boolean[]ArrayOfBooleanYes
float[]ArrayOfFloatYes
double[]ArrayOfDoubleYes
decimal[]ArrayOfDecimalYes
long[]ArrayOfLongYes
int[]ArrayOfIntYes
short[]ArrayOfShortYes

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.

Related Topics

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker