As additional info, the method signature for the web service method is:
Using System.Data;
Using System.Data.Odbc;
[WebMethod]
public DataTable myselect2 (string aconnectionstrng, string asql)
On the client side, I have:
using System.Data;
using System.Data.Odbc;
DataTable aresultset;
string aconnectionstrng,asql;
aconnectionstrng = "A CONNECTION STRING";
asql = "A SQL STATEMENT";
Service aservice = new Service();
aresultset = aservice.myselect2(aconnectionstrng, asql);
I get an error when I try to build:
Error 2 Cannot implicitly convert type
'TestWebServiceClient.TestWebService.myselect2Resp onseMyselect2Result' to
'System.Data.DataTable'
C:\Program Files\Microsoft Visual Studio
8\VC#\Programs\TestWebServiceClient\TestWebService Client\Form1.cs
36 30 TestWebServiceClient
Thanks
"Jim Murphy" wrote:
In creating a C# web service, I am having trouble returning a DataTable
object as the result of a web method. I have no problem returning native
types like string or int, but cannot return a .NET DataTable object. The
problem occurs when I try to compile the client side C# application (it
complains about the DataTable type not being recognized as the return of the
web service method).
Thanks