Synopses & Reviews
This comprehensive book teaches you how to build data-rich business applications with Silverlight 2 that draw on multiple sources of data. Packed with reusable examples, Data-Driven Services with Silverlight 2 covers all of the data access and web service tools you need, including data binding, the LINQ data querying component, RESTful and SOAP web service support, cross-domain web service calls, and Microsoft's new ADO.NET Data Services and the ADO.NET Entity Framework.
With this book, you will:
- Know when and how to use LINQ to JSON, LINQ to XML, and LINQ to Objects
- Learn how Silverlight 2 applications bind, pass, read, save, query, and present data
- Discover how your application can call web services to work with SOAP, REST, RSS, AtomPub, POX and JSON
- Design REST, ASMX, and WCF web services that communicate with Silverlight 2
- Harness RESTful web services such as Digg, Amazon, and Twitter
- Retrieve and save data using the new Entity Framework and WCF
- Work with RESTful ADO.NET Data Services and its Silverlight client library to move data between your Silverlight application and a database
Data-Driven Services with Silverlight 2 offers many tips and tricks for building data-rich business applications, and covers the scenarios you're most likely to encounter. Complete examples in C# and VB can be downloaded from the book's companion website.
About the Author
John Papa is a Microsoft C# MVP, MCSD.NET, and INETA Speaker who has been working with Microsoft distributed architectures for over 10 years. He has enterprise experience architecting and developing with .NET technologies focusing on architecture, patterns and practices, data access and mobile development. John has authored or co-authored several books on data access technologies, is the author of the "Data Points" column in MSDN Magazine, has presented MSDN WebCasts and can often be found speaking at industry conferences such as DevConnections and VSLive. You can contact John at www.johnpapa.net.
Table of Contents
Dedication; Foreword; Preface; Silverlight Backdrop; Who Should Read This Book; Why You Should Read This Book; What This Book Will Cover; Problems This Book Solves for Readers; How This Book Is Organized; Conventions Used in This Book; Using Code Examples; Safari® Books Online; Comments and Questions; Acknowledgments; Chapter 1: Getting Started with Silverlight 2; 1.1 The Importance of Data Access; 1.2 Jumping In; 1.3 Silverlight 2 Features; 1.4 LINQ; 1.5 Language Enhancements; 1.6 Summary; Chapter 2: Silverlight Data-Binding Foundations; 2.1 Life Without Binding; 2.2 Data Binding in Silverlight; 2.3 XAML's Binding Markup Extensions; 2.4 Runtime Binding; 2.5 DataContext; 2.6 Binding in Blend; 2.7 Summary; Chapter 3: Modes and Notifications; 3.1 Binding Modes; 3.2 Notifications; 3.3 Summary; Chapter 4: Managing Lists, Templates, and Converters; 4.1 Binding to List-Based Controls; 4.2 Templates and Rows; 4.3 Item Selection; 4.4 Lists and Notifications; 4.5 Converters; 4.6 Summary; Chapter 5: WCF, Web Services, and Cross-Domain Policies; 5.1 ASMX Web Services; 5.2 Creating an ASMX Web Service; 5.3 Referencing an ASMX Web Service; 5.4 Consuming an ASMX Web Service; 5.5 Cross-Domain Calls and Policies; 5.6 Creating a Silverlight-Enabled WCF Service; 5.7 Calling Services Written by Other Developers; 5.8 Summary; Chapter 6: Passing Entities via WCF; 6.1 Passing Entities Between Physical Tiers; 6.2 Using LINQ to SQL with Silverlight; 6.3 Silverlight and the Entity Framework; 6.4 Summary; Chapter 7: Consuming RESTful Services with WebClient and HttpWebRequest; 7.1 RESTful Primer; 7.2 WebClient; 7.3 Invoking a RESTful Service with WebClient; 7.4 HttpWebRequest; 7.5 Summary; Chapter 8: Consuming Amazon's RESTful Services with Silverlight 2; 8.1 Data in the Cloud; 8.2 Creating an Amazon Shopping Cart; 8.3 Summary; Chapter 9: Creating RESTful Services and Introducing SilverTwit; 9.1 Creating RESTful Services from WCF; 9.2 Servicing JSON; 9.3 Posting Data to a RESTful Service; 9.4 Case Study: SilverTwit; 9.5 Summary; Chapter 10: Syndication Feeds and Silverlight 2; 10.1 Syndicated Feeds; 10.2 Requesting a Feed; 10.3 Reading a Feed; 10.4 Cross-Domain Policies; 10.5 Aggregating Feeds; 10.6 Summary; Chapter 11: Silverlight 2 and ADO.NET Data Services; 11.1 ADO.NET Data Services Overview; 11.2 Services over Custom Data Sources; 11.3 ADO.NET Data Services over the Entity Framework; 11.4 More Saving Options; 11.5 Summary; ADO.NET Data Services Quick Reference; HTTP Methods; System.Data.Services.Client; System.Data.Services; ADO.NET Data Services URI Options; ADO.NET Data Services URI Operators; ADO.NET Data Services URI Functions; Silverlight 2 Debugging with HTTP Sniffing Tools; Fiddler2; Web Development Helper; Firebug; Colophon;