Apr 27 2009

Silverlight 3 Duplex Wrap-up

I’ve already blogged about the new Silverlight 3 Beta Duplex support here. In these days I’ve found some interesting articles and tips about this topic, so this is a list of links I’ve found useful:


Mar 22 2009

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.


Mar 21 2009

What’s new with web services in Silverlight 3 Beta

Great news:

  • Binary message encoding;
  • Duplex object model simplification;
  • Faults support;
  • New security mode;
  • Command-line proxy generation.

 

Check out the original post by the Silverlight Web Services Team.

Remember also to download the samples available here.

 


Feb 23 2009

How to speed up your app by compressing WCF service responses

Check out this excellent post by Tim Greenfield.


Feb 17 2009

Using WS-Discovery in WCF 4.0

What is WS-Discovery? As described in this excellent post by Jesus Rodriguez, WS-Discovery is an OASIS Standard that defines a lightweight discovery mechanism for discovering services based on multicast messages. Read the post for an example of its use in WCF 4.0.

 


Jan 23 2009

Catch and Handle WCF Service Exceptions in Silverlight

Suriel  Bendahan has written a great article about this topic on CodeProject, source code available!


Jan 3 2009

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.


Dec 8 2008

Understanding WCF services and Silverlight

Check out this great article by David Betz.


Dec 2 2008

Silverlight Web Services Samples

Click here to download some useful examples, including a Duplex-service example and an implementation of SOAP faults and custom SOAP headers.


Nov 3 2008

WCF DataContract Serializer and IsReference property

One of the new features of .NET framework 3.5 SP1 is the possibility to serialize an object graph with circular references by using the standard xsd:ID/xsd:IDREF attributes.

Just mark your DataContract attribute with the IsReference=true property:

    [DataContract(IsReference=true)]

    public class Room

    {

        [DataMember]

        public string description { get; set; }

        [DataMember]

        public Devices roomDevices { get; set; }

    }

 Check out this post by Zulfiqar for more examples.