Sami wrote:
No, it is not possible to return a DataTable from a web service. You will
need to wrap it inside a DataSet.
See http://support.microsoft.com/default...b;en-us;306134
Yes, that Knowledge Base article advocates returning a DataSet from a Web
service. However that should be considered a poor practice from a
service-orientation perspective. One of the tenets of service-orientation is
that services share contract and schema ... and nothing else. Passing a
DataSet between Web services violates this tenet, and the result is that it
will only work so long as both endpoints are always .NET platforms.
A better solution would be to pass entity data that is domain- or
business-specific. Not a DataTable, but a set of data that has an actual XSD
schema generated in the WSDL for the Web services so that it can be used by
clients on any platform.
Cheers,
Stuart Celarier, Fern Creek