Re: Webservice not returning the right datatype



"aran" <aran@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:AE0E5609-61B4-4B60-997F-89312A308582@xxxxxxxxxxxxxxxx
Dear Ishan,Instead of returning datatable by your web-method try returning
a
dataset.This is because dot net support for serializing to XML is extended
for dataset through interface internally but that dosn't include
datatable,so
try to return dataset instead of datatable

Actually, as of .NET 3.5, DataTable can also be serialized. And it's still a
bad idea to return it if portability is a requirement.
--
--------------------------------------------------------------------------------
John Saunders | MVP - Windows Server System - Connected System Developer


.


Loading