Export (0) Print
Expand All

WsdlExporter.ExportEndpoint Method

Generates metadata about the specified endpoint.

Namespace: System.ServiceModel.Description
Assembly: System.ServiceModel (in system.servicemodel.dll)

public override void ExportEndpoint (
	ServiceEndpoint endpoint
)
public void ExportEndpoint (
	ServiceEndpoint endpoint
)
public override function ExportEndpoint (
	endpoint : ServiceEndpoint
)
Not applicable.

Parameters

endpoint

The ServiceEndpoint about which to return metadata.

Exception typeCondition

InvalidOperationException

The exporter encountered an error.

ArgumentNullException

endpoint is a null reference (Nothing in Visual Basic).

ArgumentException

The binding is a null reference (Nothing in Visual Basic).

Use the ExportEndpoint method to create metadata about a single endpoint.

The following code example shows how to export a single endpoint.

ContractDescription myDescription = new ContractDescription("myContract");
ServiceEndpoint service1Endpoint = 
    new ServiceEndpoint(myDescription, new BasicHttpBinding(), 
    new EndpointAddress("http://localhost/myservice"));
        
WsdlExporter exporter = new WsdlExporter();
exporter.ExportEndpoint(service1Endpoint);
MetadataSet metadataDocs =
    exporter.GetGeneratedMetadata();


Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0

Community Additions

ADD
Show:
© 2015 Microsoft