I am having troubles using .Net 2.0 Datatable in webservices.
Any examples to look at.
Thanks
I have not tried that out my self. What I am sure about is that in ADO.NET
2.0 DataTable has methods like ReadXML() and WriteXML() which makes it XML
Serializable much like DataSets.
Can you specify what errors are u getting ?
regards,]
Hammad Rajjoub
Microsoft MVP,
Windows Server Systems: XML Web Services
Chairman UG Relations Comm.,
Member Speakers Bureau,
INETA MEA.(http://mea.ineta.org)
Blog: (http://dotnetwizards.blogspot.com)
> I am having troubles using .Net 2.0 Datatable in webservices.
>
> Any examples to look at.
>
> Thanks
Yes
- Sahil Malik [MVP]
ADO.NET 2.0 book -
http://codebetter.com/blogs/sahil.malik/archive/2005/05/13/63199.aspx
-------------------------------------------------------------------------------------------
>I am having troubles using .Net 2.0 Datatable in webservices.
>
> Any examples to look at.
>
> Thanks
Atul Bahl - 01 Aug 2005 20:01 GMT
Since Datatable is implementing ISerializable interface, I am assuming it
should automatically return XML.
I have also used RemotingFormat = SerializationFormat.Xml
but still in webservices I am receiving error.
Like Hammad mentioned, do we have to write the xml to a file and stream it
back. I hate to do file IO on each requrest.
Do you guys have any code snippets for using datatables for webservices in
.Net 2.0
Thanks in advance.
Atul
> Yes
>
[quoted text clipped - 8 lines]
> >
> > Thanks