Silverlight 3 Beta Duplex support

I’m testing the updated Duplex support available in Silverlight 3 Beta, the important news is the possibility to simplify and reduce the code in the client:

  • now it’s possible to use the “Add Service Reference” functionality of Visual Studio to consume the service;
  • in this way you the use of channels can be avoided by simply attaching a callback to an event.

I’ve prepared an example based on the material available on the official documentation, download the complete solution from here.

Silverlight, SOAP Headers, WCF and asmx services

As reported by the Web Services Team, Silverlight 2 supports custom SOAP headers.

A good working example can be found here, but it only uses WCF services, what about the “old” asmx ones?

I’ve modified the “SilverlightHeaders” solution to use both WCF and asmx, using OperationContext in the first case and HttpContext in the last, click here to download the complete solution.