Chapter 8. Talking to REST and WCF Data Services

In this chapter, we will cover:

  • Reading data from a REST service
  • Parsing REST results with LINQ-To-XML
  • Persisting data using a REST service
  • Working with the ClientHttpStack
  • Communicating with a REST service using JSON
  • Using WCF Data Services from Silverlight
  • Reading data from WCF Data Services
  • Persisting data using WCF Data Services
  • Talking to Flickr
  • Talking to Twitter from a non-trusted application
  • Passing credentials and cross-domain access to Twitter from a trusted Silverlight application

Introduction

While WCF and ASMX services are very powerful and can address almost every situation, these services might be overkill for some scenarios. Sometimes, a simple exchange of textual information, preferably in XML ...

Get Silverlight 4 Data and Services Cookbook 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.