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 ...

Get Microsoft® .NET Compact Framework Kick Start now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.