I’ve just updated the sample about Duplex Services and SLB2: the modified Web.config now permits to expose composite types to the client.
In these days I’m expanding my knowledge reading some great (and enjoyable) books.
Programming .NET 3.5 by Jesse Liberty and Alex Horovitz is one of my favourites: it gives you the “big picture” of the various technologies included in this release of the framework: N-tier applications, WPF, WCF, Silverlight, AJAX, LINQ, MVC and patterns.
You can try it just following these simple steps:
- open the solution using Visual Studio 2008;
- deploy the Wcf Service “DuplexService” to http://localhost/DuplexService;
- copy the included crossdomain.xml and clientaccesspolicy.xml in c:\inetpub\wwwroot\;
- run the project “DuplexClientWeb” from within Visual Studio or deploy it to IIS.
One of the new features of SL2B2 is the capability to use duplex WCF services.
Dan Wahlin has written two great articles about this topic on his blog:
- Pushing Data to a Silverlight Client with a WCF Duplex Service – Part 1;
- Pushing Data to a Silverlight Client with a WCF Duplex Service – Part 2.
Definitely worth a look!
Some useful posts:
Check out this interesting example of LOB application developed using Silverlight 2.
Source code available!