Partial Trust: WPF Calling WCF Using a WSHttpBinding
This sample demonstrates an end-to-end scenario that uses the <wsHttpBinding> in a partially-trusted application. In this scenario, both the client and service run with reduced Code Access Security (CAS) permissions. The service is hosted in a Medium Trust ASP.NET application and the client is a Windows Presentation Foundation (WPF) XAML Browser Application (XBAP) running with Internet Zone permissions.
Note
This sample requires that .NET Framework version 3.5 is installed to build and run. Visual Studio 2008 is required to open the project and solution files.
To set up, build, and run the sample
Ensure that you have performed the One-Time Set Up Procedure for the Windows Communication Foundation Samples.
To build the C# or Visual Basic .NET edition of the solution, follow the instructions in Building the Windows Communication Foundation Samples.
Open https://localhost/ServiceModelSamples/Index.htm in your Web browser.
Note
Please ensure that static content is enabled in IIS, as described in Internet Information Service Hosting Instructions.
© 2007 Microsoft Corporation. All rights reserved.