Beta2 – Consuming datatables from web services…

Although you can now output DataTables from web services in .NET 2.0, there is still a problem when trying to consume them using a web reference in a client project in VS2005. (I know there are plenty of people who think this is evil anyway…)

The problem is apparently in the proxy generation.

Here is the code from the web service:

The web service functions perfectly well.

But when trying to code up the client app to consume this, it does not recognize that the function is returning a DataTable. Instead it has cobbled some of the proxy info together by mistake.

I did submit this but thought I would put it here in case someone else ran into it and thought they were doing something wrong. This worked for me up until one of the recent CTPs where it seemed to be broken.

  Sign up for my newsletter so you don't miss my conference & Pluralsight course announcements!  

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.