Re: Webservice not returning the right datatype
- From: "John Saunders [MVP]" <john.saunders at trizetto.com>
- Date: Thu, 6 Mar 2008 10:43:50 -0500
"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
.
- Prev by Date: Re: Web Services Client Error
- Next by Date: Re: How to return a user-defined data type object from a webservice?
- Previous by thread: WSE Multi-Threading?
- Next by thread: Re: WCF - Client Credentials (Username/Password) - ASP.NET Membership
- Index(es):
Loading