In this episode, Tomasz Janczuk of the Silverlight Web Services team joins John to demonstrate how to implement duplex communication with WCF in Silverlight. Tomasz discusses a how to implement a chat application using WCF, the basics of the polling duplex protocol, when the Net.tcp protocol is ideal, and some performance and scalability considerations.
Relevant links:
Follow us on Twitter @SilverlightTV or on the web at http://silverlight.tv/
Hi Guys,
A question regarding the web services and Silverlight. Would you be able to shed some light on why there is no support for WSHttpBinding in Silverlight please?
Thank you,
Yosh
Yosh,
Silverlight supports a good subset of BasicHttpBinding functionality. The major value add of WSHttpBinding over BasicHttpBinding is supoport for WS-Security and WS-ReliableMessaging. Given substantial demand, we are looking into enabling a subset of WS-Security capabilities in the future release of Silverlight.
Thanks,
Tomasz Janczuk
Thank you for the quick reply Thomasz. I work for a law enforcement agency and we were looking at creating a Silverlight application for the patrol cars. The application will enhance the current capablities of the law enforcement officers. Security is paramount to us. I will keep up with the future releases and hope to see the WSHttpBinding support.
Thank you very much,
Where can we download the sample?
I wonder which particular security features from WSHttpBinding you are interested in?
A sample chat application similar to the one shown in the video can be downloaded from http://tomasz.janczuk.org/2009/07/pubsub-sample-using-http-polling-duplex.html. More resources related to polling duplex are at my blog at http://tomasz.janczuk.org.
John, I'm very happy to see you poking into this area of SL. And much thanks to Tomasz for his solid knowlege. I think [at least personally] the communication power of SL has not been explored fully and I hope to see more series of this type of materials.
..Ben
Tomasz, although the sample on your blog was built with/for SL3, but I heard you pointed out many things that are new features in SL4, so it might be best to have a SL4 version of the sample.
Thanks!
Hi Tomasz,
Does the WCF duplex communication with Silverlight work in a web farm and on Azure?
Regards,
James.