Hi everyone,
WCF noob here...
We have VB.NET 2003 web services that are returning datasets...
I need to write a REST WCF service and return those datasets.
I cannot use LINQ since the database is SQL 2000 ...
so is it possible to return a whole dataset in wcf? I haven't found
anything on returning datasets yet...
Are there any examples on the web?
TIA
Return DataSet in WCF?
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Sam HobbsRank #108 · 20.5K reputationPosted Apr 26, 2011, 1:34 PM EDT
If the dataset is a collection of tables, then I assume that you just need to serialize each table to XML and send each of them. You could combine all the data into one XML file.
Are you totally sure you did not look for articles in this web site before asking for samples? I assume that after you created this thread, you got an email messae with suggestions. I hope that helpled. If you missed it, then look at the list of articles at the right side of this wndow.
Derek7 reputationPosted Apr 27, 2011, 1:23 PM EDT
I guess the part that I don't understand is that once i retrieve my dataset or my datatable from a query, is there anything else that I need to do to return that data via REST/JSON... i think from what I've read on the web, is that i need to create a LIST from that datatable so that its easily passed back to the client via REST. Is that assumption correct?
Sam HobbsRank #108 · 20.5K reputationPosted Apr 27, 2011, 1:54 PM EDT