Consuming Data from the Server Using WCF Services

Although this chapter primarily focuses on consuming data with RIA Services, it's worth briefly looking first at how you can consume data using plain old WCF Services.

images Workshop: Querying Data Exposed by a WCF Service

In Chapter 4, we created a WCF Service that returned a collection of Product entities from an Entity Framework model. You can consume data from a WCF Service in Silverlight in essentially the same way as you would in a Windows Forms or WPF application; you're just forced into using the asynchronous methods when using Silverlight, as the synchronous methods are not available.

Note ...

Get Pro Business Applications with Silverlight 5 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.