O'Reilly logo

Microsoft® .NET Compact Framework Kick Start by Ronnie Yates, Erik Rubin

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Consuming a Web Service That Uses a DataSet

Thus far, our XML Web service has returned custom data structures. The .NET Compact Framework provides the ability to transfer even more complex data, such as the DataSet. Although the .NET Compact Framework does not support a typed DataSet, we will see that you can work around this by using a regular DataSet.

Sending and receiving a regular DataSet is done exactly like sending a custom data structure or a simple piece of data, such as a string. The Web method simply needs to accept or return a System.Data.DataSet object. In our first DataSet aware XML Web service, we send the complete Quotes table down to the client. This would allow the application to go offline and still be able to display quotes ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required