We have a new Intern here that started here recently (Devin Brown) and we have him working on Silverlight so he can help with some of our up coming Silverlight projects. One of the tasks was to demonstrate Silverlight 1.1 to WCF. In this case we have a simple WCF Service library and we front this in a our web application by starting the service in the Global.asx so that the service is actually tied to the IIS application state of our web app. So todo this we included the hose class and in the global asx we have a simple block that looks like this:
protected void Application_Start(object sender, EventArgs e)
{
WcfHost.StartService();
}
This gets our service started and then the calls are fronted by an asmx in the same wbe application. In the sample Devin did we have a number of bits but the important part is in the Silverlight code behind file (see 'Page.xaml.cs' )where we create a reference to the local web service and we call a method and place the output into a textblock in our xaml page. quick, dirty and simple. Good Job Devin. See the attached project.