This documentation is archived and is not being maintained.

MessageEncodingBindingElementImporter Class

Converts WSDL-based policies and contracts about message encoding into descriptions of the binding elements that can implement these policies for the service.

Namespace:  System.ServiceModel.Channels
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public class MessageEncodingBindingElementImporter : IWsdlImportExtension, 

Override this class to extend the standard mapping between WSDL and a message encoding binding element. Then attach your custom object to a WsdlImporter either programmatically or by using an application configuration file. You can also attach your custom object to the internal WsdlImporter used by the Service Model Metadata Utility Tool (Svcutil.exe) using an application configuration file.

Use the BeforeImport(ServiceDescriptionCollection, XmlSchemaSet, ICollectionXmlElement) method to directly modify the metadata that is then imported into message encoding binding elements.


Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0