TextMessageEncodingBindingElement.IWsdlExportExtension.ExportContract Method (WsdlExporter, WsdlContractConversionContext)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Generates WSDL contract information from encoding policies contained in the binding element.

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

void IWsdlExportExtension.ExportContract(
	WsdlExporter exporter,
	WsdlContractConversionContext context


Type: System.ServiceModel.Description.WsdlExporter

The WsdlExporter that exports the contract information.

Type: System.ServiceModel.Description.WsdlContractConversionContext

A WsdlContractConversionContext object that provides mappings from exported WSDL elements to the contract description.

The TextMessageEncodingBindingElement is responsible for setting information about the message version in the WSDL. But this is done by the IWsdlExportExtension.ExportEndpoint(WsdlExporter, WsdlEndpointConversionContext) method, not by IWsdlExportExtension.ExportContract(WsdlExporter, WsdlContractConversionContext), which is implemented but empty.

.NET Framework
Available since 3.0
Return to top