Silverlight Consuming REST Services

    I just finished writing the first draft of a sample I am including in my upcoming book tentatively titled Data Access with Silverlight 2 by O'Reilly. Without giving too much away yet since the final details of the contract are not set in stone, the application example consumes a REST service, manipulates it through LINQ to XML, and binds it to various controls and some composite controls. The interaction with the REST (REpresentational State Transfer) services is pretty slick and quite easy when using Silverlight and LINQ to XML. Of course there are always issues to deal with, but overall it works very nicely.

    Why use REST? Well, REST services are becoming more abundant on the web. They do not expose a contract like WCF so when you deal with this type of data you can parse the XML using LINQ to XML or some other XML tools (though LINQ TO XML is so smooth why bother with anything else in this case). So this raw XML comes barreling into your Silverlight application asynchronously, LINQ to XML makes it fall in line, and its bound to where it needs to go via XAML.

    Sending data back via REST is also very cool. I've got that working now too. I have to be careful not to go overboard fine tuning the examples though or the book will never get written :) Interacting with REST from Silverlight applications is just one piece of the data access puzzle, but its pretty cool.

    #1 Colin Jack on 5.26.2008 at 1:56 PM

    Excellent, I'll definitely be buying a copy. Any idea of a release date?



    #2 John Papa on 5.26.2008 at 5:23 PM

    Cool! Official date is early December. I hope it will be November, though, but no promises. :-)



    #3 Keeping Focused on Silverlight and Data on 5.28.2008 at 11:20 PM

    I'm working with the very talented Corrina Barber who has created several sets of skins for Silverlight controls. The skins are elegant, but not over the top, styles that can be applied to Silverlight controls. Corrina has been gracious enough to help



    #4 Silverlight Related Skills – Post 1 on 11.20.2008 at 2:22 PM

    Recently I wrote that there are a number of readers who are running into difficulty with skills needed



    #5 Silverlight Related Skills – Post 1 on 11.20.2008 at 7:38 PM

    Recently I wrote that there are a number of readers who are running into difficulty with skills needed



    Leave a Comment