0
Votes in Release
(breakdown)
SL3 RTW Samples

Description

Request/reply Services

Xbox Live Friend Search

This sample demonstrates how to build a service to host a list of friends and search through the games they play. The data is stored in a database, which is accessed through Entity Data Model (EDM) types. The WCF service used to search through the EDM types uses new SL3 features such as binary message encoding and support for SOAP faults.
Download code

Xbox Live Friend Search with Security

This sample builds on the previous sample, but adds transport security and authentication through SOAP message credentials. Note that this sample needs to be hosted in your local IIS instance, which is already pre-configured to serve web sites through HTTPS. The sample cannot be run out of Visual Studio because the built-in web server does not support HTTPS.
Download code

Duplex Services


Simple car race using duplex binding

In this sample a WCF service serves out data about the progress of a set of cars along a race track. This data is displayed in a Silverlight UI. The service notifies the client when it has new data instead of the client polling for the data - this is characteristic of the "duplex" pattern. Please note that this is a very basic sample and does not show the optimizations needed to scale the duplex service. For information on how to configure the duplex feature for production use, see the next sample.
Download code

Pub/sub sample using HTTP polling duplex WCF channel

This sample demonstrates how a Micrososoft Silverlight 3 application can consume asynchronous data notifications from the server using the polling duplex protocol of Windows Communication Foundation (WCF).

The full source code and Visual Studio solution can be downloaded from http://code.msdn.microsoft.com/Project/Download/FileDownload.aspx?ProjectName=silverlightws&DownloadId=6964.

For a detailed description of the sample highlighting good performance practices please refer to http://tomasz.janczuk.org/2009/07/pubsub-sample-using-http-polling-duplex.html.

AJAX client for HTTP polling duplex WCF channel

This sample shows how an AJAX browser application can receive asynchronous data notifications from a WCF service exposed using the HTTP polling duplex protocol that shipped in Microsoft Silverlight 3. The sample code contains a reusable, standalone JavaScript library (sl3duplex.js) which implements the client side of the polling duplex protocol.

The full source code and Visual Studio solution can be downloaded from http://code.msdn.microsoft.com/Project/Download/FileDownload.aspx?ProjectName=silverlightws&DownloadId=6965.

For a detailed description of the sample and documentation of the reusable AJAX library please refer to http://tomasz.janczuk.org/2009/08/ajax-client-for-http-polling-duplex-wcf.html.


Files

Source Code PollingDuplexSample.zip
source code, 55K, uploaded Aug 17  - 426 downloads
Source Code PollingDuplexSampleAjax.zip
source code, 63K, uploaded Aug 17  - 223 downloads
Source Code Xbox Live Friends
source code, 611K, uploaded Aug 31  - 352 downloads
Source Code Xbox Live Friends with Security
source code, 615K, uploaded Aug 31  - 211 downloads
Source Code Car Race
source code, 103K, uploaded Aug 30  - 332 downloads



Updating...
Page view tracker