Chapter 6. Dealing with Data in Service

In this chapter, we will cover:

  • Binding a WPF element with data from a WCF service
  • Returning ReadOnlyCollection data
  • Using raw XML as an operation parameter
  • Returning a DataTable/DataSet in a service operation
  • Transferring binary data with MTOM encoding
  • Specifying ServiceKnownType information in a programmatic way
  • Using XmlSerializer for custom data serialization

Introduction

Data transfer is always a hot topic in distributed communication. WCF supports transferring various kinds of data such as database records, custom data objects, XML document, and even raw binary data.

In this chapter, we will go through different kinds of data transferring cases in WCF service development. The recipes will start with a simple ...

Get Microsoft Windows Communication Foundation 4.0 Cookbook for Developing SOA Applications 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.