This documentation is archived and is not being maintained.

Windows Communication Foundation Extensibility Samples

The samples in this section demonstrate some Windows Communication Foundation (WCF) extensibility scenarios.

In This Section

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.

See Also

Footer image

Send comments about this topic to Microsoft.
© Microsoft Corporation. All rights reserved.

Show: