O'Reilly logo

Microsoft Windows Communication Foundation 4.0 Cookbook for Developing SOA Applications by Steven Cheng

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

Returning a DataTable/DataSet in a service operation

A very frequently asked question in a WCF Data transfer service is how to return a DataTable/DataSet in a WCF service operation. The DataTable class is a member of the System.Data namespace within the .NET framework class library. You can create and use a DataTable independently or as a member of a DataSet, and DataTable objects can also be used in conjunction with other .NET framework objects.

There are various possible solutions for DataTable or DataSet transferring in a WCF service; we will go through the most common ones in this recipe.

Getting ready

In our sample service, we will demonstrate several means to return data from a DataTable to client consumers. The sample DataTable consists of ...

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