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.
Chapter 1 Getting Started with Silverlight 2
The Importance of Data Access
Silverlight 2 Features
Chapter 2 Silverlight Data-Binding Foundations
Life Without Binding
Data Binding in Silverlight
XAML’s Binding Markup Extensions
Binding in Blend
Chapter 3 Modes and Notifications
Chapter 4 Managing Lists, Templates, and Converters
Binding to List-Based Controls
Templates and Rows
Lists and Notifications
Chapter 5 WCF, Web Services, and Cross-Domain Policies
ASMX Web Services
Creating an ASMX Web Service
Referencing an ASMX Web Service
Consuming an ASMX Web Service
Cross-Domain Calls and Policies
Creating a Silverlight-Enabled WCF Service
Calling Services Written by Other Developers
Chapter 6 Passing Entities via WCF
Passing Entities Between Physical Tiers
Using LINQ to SQL with Silverlight
Silverlight and the Entity Framework
Chapter 7 Consuming RESTful Services with WebClient and HttpWebRequest
Invoking a RESTful Service with WebClient
Chapter 8 Consuming Amazon’s RESTful Services with Silverlight 2
Data in the Cloud
Creating an Amazon Shopping Cart
Chapter 9 Creating RESTful Services and Introducing SilverTwit
Creating RESTful Services from WCF
Posting Data to a RESTful Service
Case Study: SilverTwit
Chapter 10 Syndication Feeds and Silverlight 2
Requesting a Feed
Reading a Feed
Chapter 11 Silverlight 2 and ADO.NET Data Services
ADO.NET Data Services Overview
Services over Custom Data Sources
ADO.NET Data Services over the Entity Framework
More Saving Options
Appendix ADO.NET Data Services Quick Reference
ADO.NET Data Services URI Options
ADO.NET Data Services URI Operators
ADO.NET Data Services URI Functions
Appendix Silverlight 2 Debugging with HTTP Sniffing Tools
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.
The animal on the cover of Data-Driven Services with Silverlight 2 is a white-cheeked turaco (Tauraco leucotis). The bird is prized for its beauty: its feathers contain rich blue, green, and copper hues that are not found in other birds, and, when flying, the bird's vibrant red secondary feathers become visible. A white stripe runs along one cheek (hence its common name), and its beak and a circular patch around its eye are bright orange.
White-cheeked turacos live in families of no larger than six birds. Researchers believe the birds show their distinctive red coloring while flying to let their family members know where they are and also to help set the boundaries of their territory.
Although the bird's natural habitat is in Africa, white-cheeked turacos can be found in zoos around the world. Visitors to zoos find the birds are popular not only for their colorful appearances, but also for their colorful personalities, as the birds have curious natures and often enjoy being approached by humans.
Throughout the mating season, male and female white-cheeked turacos will usuallyspend time apart when not breeding; if the birds are forced together during this time, they will fight and occasionally harm each other. However, after the female lays her eggs, the parents again become attentive toward each other and others of their kind, and it is not unusual for adult white-cheeked turacos to become foster parents to other chicks within their species.
The cover image is from Cassell's Natural History. The cover font is Adobe ITC Garamond. The text font is Linotype Birka; the heading font is Adobe Myriad Condensed; and the code font is LucasFont's TheSansMonoCondensed.
Comments about oreilly Data-Driven Services with Silverlight 2:
Me again, thought I'd add that sample code is now available, and so far it works! I'm been going through lots of samples and walkthrus from the net on various pieces - different versions of silverlight etc., this book and samples bring it all together in one place nicely.
Comments about oreilly Data-Driven Services with Silverlight 2:
Picked up ebook version (great for coffee shops and pda reader), very decent walk thru with several real world (umm, real cloud?) examples.
Sample code not available yet unfortunately, so can't comment on that.
There are a lot of alternate and overlapping protocols/formats/tools covered, which can get confusing, would have liked to see a few more charts showing pros/cons and differences, and what fits with what with Silverlight 2. A bit more on security would have helped too - beyond integrated authentication, things to watch out for etc.
The chapters quickly covered what was needed and introduced new topics in a smooth flowing manner.
The chapter on debugging was an unexpected bonus that will save me many hours.