Create a WCF Service and Client

Updated: October 9, 2012

Applies To: Windows Home Server 2011, Windows Server 2012 Essentials, Windows Small Business Server 2011 Essentials, Windows Storage Server 2008 R2 Essentials

The scenario requires health status information to be collected from the reporting server and passed to the aggregating provider.

A service that is hosted online and accessed through the Service Bus can pass information to the reporting provider. You can use the AppFabric feature of Windows Azure to host the service online.

To host the service online

  1. If you have not already done so, download and install the Windows Azure platform AppFabric SDK. To download the SDK, see Windows Azure platform AppFabric SDK v1.0 (https://go.microsoft.com/fwlink/?LinkID=181893). For more information about using the SDK to access the Service Bus, see AppFabric Service Bus Tutorial (https://go.microsoft.com/fwlink/?LinkID=181920).

  2. Sign up for a Windows Azure account at the Microsoft Web site (https://go.microsoft.com/fwlink/?LinkId=181901).

  3. After you create a new account, add a service namespace with a unique name. For example, <UserName>-HealthDashboardProvider, where <UserName> is substituted with your name. Make note of the Issuer Name and the Issuer Secret, which will be used later in the procedure.

  4. In Visual Studio 2010, open the App.config file in the HealthDashboardProvider project and change the following settings:

    • Change the address of the endpoint to include the service namespace that you created in Windows Azure. The format of the address is sb://<service-namespace>.servicebus.windows.net/ReportService.

    • Change IssuerName to the Issuer Name that you recorded when you created the service namespace.

    • Change IssuerSecret to the Issuer Secret that you recorded when you created the service namespace.

  5. Save the App.config file.