Optimizing performance using binary XML

When working with data in Silverlight, you'll typically get your data through some kind of service call. This means that this data has to be sent over the wire. In some cases, the data that is to be sent back and forth is relatively small, but in other cases, the amount of transported data can become quite large, which means more bandwidth consumption and a longer wait for the user.

When using WCF services with Silverlight, it's possible to compress this data, thus ensuring lower bandwidth consumption. In this recipe, you'll learn how to achieve this.

Getting ready

If you want to follow along with this recipe, you can use the provided starter solution located in the Chapter07/UsingBinaryXML_Starter folder ...

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.