Applies to Silverlight 3, 4 and 5
Let's assume that we are writing a Silverlight application that needs to work with data exposed by a RESTful service. The first question that comes to mind is: how can we communicate with such a service and read out the data returned by the service?
This recipe focuses on the communication aspect of REST services, such as how we can connect to a RESTful service from Silverlight and get data into our application.
In this recipe, we'll retrieve a list of all users in the
Users table using a REST service. For now, we'll show the results in the same format as they are returned, which is plain XML.
The finished solution for this recipe can be found in the