DataTables and Web Services
I'm writing a web service and would like the function to return a dataset,datatable, or datarow. Everytime I try returning one of these objects I get an error. It reads as follows:
"System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.InvalidOperationException: There was an error generating the XML document. ---> System.InvalidOperationException: The type System.Data.DataTable was not expected...."
Any ideas on what this means? Is it even possible for a web service to return these data types?
Also, can you pass a connection, an ODBC connection to be specefic, into a web service as a parameter? That too generates errors.
Thanks for your help.