Windows Communication Foundation Technology Samples - From Microsoft
.NET No Comments »Basic Windows Communication Foundation Technology Samples
- Getting Started Sample - Demonstrates how to implement a typical service and a typical client using Windows Communication Foundation (WCF).
- Service Samples - Demonstrates service hosting, behaviors, and error handling in a Windows Communication Foundation (WCF) service.
- Client Samples - Demonstrates client features or behaviors.
- Contracts Samples - Demonstrates how to configure data contracts, service contracts, and message contracts for a WCF service.
- Binding Samples - Demonstrates the use and configuration of bindings.
- Management Samples - Demonstrates how to manage a WCF service.
Windows Communication Foundation Scenario Samples
- Data Binding in an ASP.NET Client - This sample demonstrates how to bind data returned by a typical WCF service in a Web Form application.
- Data Binding in a Windows Forms Client - This sample demonstrates how to bind to data returned by a WCF service in a Windows Forms application.
- Data Binding in a Windows Presentation Foundation Client - Demonstrates the use of data binding in a Windows Presentation Foundation (WPF) client.
- Intermediary Router - Demonstrates how to implement a service that provides basic routing and load balancing functionality.
- Federation Sample - Demonstrates support for deploying federated security architectures through the wsFederationHttpBinding.
- Discovery: UDDI - Demonstrates how to implement a WCF client that performs basic operations with a UDDI V2 service that is available on the Internet.
- Design Patterns: List-Based Publish-Subscribe - Demonstrates a WCF implementation of the List-Based Publish-Subscribe design pattern.
- Peer Channel Custom Peer Resolver - Demonstrates how to implement a custom peer resolver that can be used with Peer Channel applications.
- Peer Channel Chat - Demonstrates how to implement a multiparty chat application using Peer Channel. Messages sent by an instance of chat application are received by all other instances.
- Trusted Facade Service - Demonstrates how to flow caller’s identity information from one service to another using WCF security infrastructure.
- REST and POX - Demonstrates how to use HTTP transport in Windows Communication Foundation (WCF) to send and receive “plain old XML” (POX) messages – that is, messages that consist of solely of XML payloads without any enclosing SOAP envelope.
Windows Communication Foundation Extensibility Samples
- DataContract Surrogate - Demonstrates how processes like serialization, deserialization, schema export, and schema import can be customized using a data contract surrogate class. This sample shows how to use a surrogate in a client and server scenario where data is serialized and transmitted between a WCF client and service.
- Extending Control Over Error Handling and Reporting - Demonstrates how to extend control over error handling and error reporting in a WCF service using the IErrorHandler interface.
- Operation Formatter and Operation Selector - Demonstrates how WCF extensibility points can be used to allow message data in a different format from what WCF expects. By default, WCF formatters expect method parameters to be included under the <soap:body> element. The sample shows how to plug in a custom operation formatter that parses parameter data from an HTTP GET query string instead and invokes methods using that data.
- Custom Service Host - This sample demonstrates how to use a custom derivative of the ServiceHost class to alter the run-time behavior of a service. This approach provides a reusable alternative to configuring a large number of services in a common way. The sample also demonstrates how to use the ServiceHostFactory class to use a custom ServiceHost in the Internet Information Services (IIS) or Windows Process Activation Service (WAS) hosting environment.
- Instancing Extensibility Samples - The samples in this section demonstrate some Windows Communication Foundation (WCF) instancing extensibility scenarios.
- Custom Message Filter - Demonstrates how to replace the message filters that Windows Communication Foundation (WCF) uses to dispatch messages to endpoints.
- Parameter Filter - Demonstrates how to validate the parameters passed to a method before it is invoked.
- Message Inspectors - Demonstrates how to implement and configure client and service message inspectors.
- Metadata Extensibility Samples - The samples in this section demonstrate some Windows Communication Foundation (WCF) metadata extensibility scenarios.
- Interoperable Extensibility Samples - The samples in this section demonstrate some Windows Communication Foundation (WCF) interop extensibility scenarios.
- Binding Extensibility Samples - The samples in this section demonstrate some Windows Communication Foundation (WCF) binding extensibility scenarios.
- Transport Extensibility Samples - The samples in this section demonstrate some Windows Communication Foundation (WCF) transport extensibility scenarios.
- Message Encoder Extensibility Samples - The samples in this section demonstrate some indigo1 channel extensibility scenarios.
- Message Encoder Extensibility Samples - The samples in this section demonstrate some Windows Communication Foundation (WCF) message encoder extensibility scenarios.
- Security Extensibility Samples - The samples in this section demonstrate some Windows Communication Foundation (WCF) security extensibility scenarios.
Sample Tools
- ConfigurationCodeGenerator - Used to expose custom channel implementations to the configuration system.
- CustomChannelsTester - Used to test your custom channel implementations against a set of predefined service contracts.
- FindPrivateKey






Recent Comments