This documentation is archived and is not being maintained.

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.



The ServiceEndpoint about which to return metadata.

Exception typeCondition


The exporter encountered an error.


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


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();
MetadataSet metadataDocs =

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