TransportBindingElementImporter.IWsdlImportExtension.BeforeImport Method (ServiceDescriptionCollection, XmlSchemaSet, ICollection<XmlElement>)


Adds custom policy assertions to the WSDL bindings in WSDL documents that are to be imported.

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

void IWsdlImportExtension.BeforeImport(
	ServiceDescriptionCollection wsdlDocuments,
	XmlSchemaSet xmlSchemas,
	ICollection<XmlElement> policy


Type: System.Web.Services.Description.ServiceDescriptionCollection

The collection of WSDL documents that are to be imported.

Type: System.Xml.Schema.XmlSchemaSet

The collection of XML Schema documents that are to be imported.

Type: System.Collections.Generic.ICollection<XmlElement>

The collection of policy assertions that are to be imported.

This method attaches a policy expression to WSDL bindings that already have attached policies. The added policy expression contains a custom policy assertion that contains the SOAP transport URI from the SOAP binding. This policy assertion is used when importing the endpoint to import the correct transport binding element.

.NET Framework
Available since 3.0
Return to top