TransportBindingElementImporter.IWsdlImportExtension.BeforeImport Method

Definition

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

C#
void IWsdlImportExtension.BeforeImport(System.Web.Services.Description.ServiceDescriptionCollection wsdlDocuments, System.Xml.Schema.XmlSchemaSet xmlSchemas, System.Collections.Generic.ICollection<System.Xml.XmlElement> policy);

Parameters

wsdlDocuments
ServiceDescriptionCollection

The collection of WSDL documents that are to be imported.

xmlSchemas
XmlSchemaSet

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

policy
ICollection<XmlElement>

The collection of policy assertions that are to be imported.

Implements

Remarks

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.

Applies to

Tuote Versiot
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1