Persisting data using a standardized service

In the previous recipe, we connected with the service and read out the result of the service call. However, we can also send data back to the service as a type known by the service. If a type is used as the type for a parameter or as the return type for a service method, that type will be exposed by the service as well. Through the proxy generation, we have access to this type inside the Silverlight application as well.

In this recipe, we'll add another method to the web service that uses a custom type as the type for its parameter.

Getting ready

This recipe builds on the code from the previous recipe. If you want to follow along with this recipe, you can either continue using your code or use the provided ...

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.