Follow me on Twitter at Twitter.com/wbm
FYI, I'm blogging most of my stuff over at More Wally now.
You might want to add my rss feed to your reader at:http://morewally.com/cs/blogs/wallym/rss.aspx
Getting data from a web service with Microsoft AJAX Library October Release using the Core bits - Microsoft AJAX Library and ASP.NET 2.0 AJAX Extensions - Wallace B. McClure

Wallace B. McClure

All About Wally McClure - The musings of Wallym on Web, HTML5, Mobile, Xamarin.iOS, Xamarin.Android, and Windows Azure.

News

Visual Studio Magazine Column Personal Blog

.NET

Book Authors

Business

Family

Friends

Georgia Tech Bloggers

Personal

Archives

Getting data from a web service with Microsoft AJAX Library October Release using the Core bits - Microsoft AJAX Library and ASP.NET 2.0 AJAX Extensions

I've been work with getting data back from a web service with the October Release and using the Core Bits.  If I try and return a datatable, I have been getting an error.  I did some checking and I found that the datatable serializer is in the CTP dll, so this has been a frustrating situation.  I did some reading and some additional checking and it looks like the only way to return data from a web service through a web service is by creating a strongly typed set of objects.  I've been creating a Generic List<T> and then calling a .ToArray() when I return the data.  if you have some additional suggestions, feel free to add them as a comment in this message.

Originally posted at: http://morewally.com/cs/blogs/wallym/archive/2006/10/29/462.aspx 

Comments

robert said:

You can return a DataSet, but not a DataTable. Go figure!
# October 30, 2006 12:54 AM

Wallym said:

Hmm, I just tried to return a DataSet and I recieved the same error message with the JavascriptSerializer.  Hmm, more investigation is necessary.

# October 30, 2006 8:02 AM