Re: DataTable returned from a Web Service
- From: Javier Soques <j.soques@xxxxxxxxxxx>
- Date: Mon, 25 Sep 2006 10:04:09 -0400
Most of my clients are .NET, in fact one is a VB6 client and I was able to convert a DataTable within a DataSet to a classic ADO Recordset and works perfectly. I come from a DCOM background so passing a .NET object is not a big fuzz for me. I know for a SOA type web service passing proprietary objects is no-no, but in my circumstance it's a benefit.
Anyway I wanted to avoid having to pass a DataSet and instead pass a DataTable since I think is a lighter payload than a DataSet and I will be using only single tables or joined queries. Funny thing is that with my VB6 client I can use the web service function that returns a DataTable but not my 'new' .Net clients.
Thanks anyway.
Javier
John Saunders wrote:
"jsoques" <jsoques@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:C0720B2F-95CD-45EB-831A-E81D7BC47ABF@xxxxxxxxxxxxxxxx.Hello, I created a Web Service using .Net 2.0 that has a function that
returns a DataTable. I can test the function from the web page when I access
the .asmx from a browser on localhost and it works. I can also test the
function using VB6 and the xmlhttp activex object. The problem I have now is
when using VS 2005 or VB.Net 2005 Express and creating a web references is
that the proxy created doesn't map the function as returning a DataTable
instead returns some other type of object named xxxxResult where xxxx is the
name of the web service function. I have another function that returns a
DataSet that works perfectly with the web reference although I'd rather use a
DataTable since I won't need all the functionality that a DataSet brings.
Anyone have the same problem and found a solution?
Unless all of the clients of your web service are using .NET, then you should not be trying to transfer .NET objects to and from your web service.
John
- Follow-Ups:
- Re: DataTable returned from a Web Service
- From: Matt Peden
- Re: DataTable returned from a Web Service
- References:
- Re: DataTable returned from a Web Service
- From: John Saunders
- Re: DataTable returned from a Web Service
- Prev by Date: Re: DataTable returned from a Web Service
- Next by Date: Re: Web Service method works on local machine but fails on remote
- Previous by thread: Re: DataTable returned from a Web Service
- Next by thread: Re: DataTable returned from a Web Service
- Index(es):
Relevant Pages
|