Metadata Extensibility Samples
The samples in this section demonstrate some Windows Communication Foundation (WCF) metadata extensibility scenarios.
In This Section
Custom WSDL Publication
Demonstrates how to:Implement a System.ServiceModel.Description.IWsdlExportExtension on a custom System.ServiceModel.Description.IContractBehavior attribute to export attribute properties as WSDL annotations.
Implement System.ServiceModel.Description.IWsdlImportExtension on behaviors to import the custom WSDL annotations.
Implement System.ServiceModel.Description.IServiceContractGenerationExtension and System.ServiceModel.Description.IOperationContractGenerationExtension on a custom System.ServiceModel.Description.IWsdlImportExtension to write imported annotations as comments in the CodeDom for the imported contract and operation.
Use the System.ServiceModel.Description.MetadataExchangeClient to download the WSDL, a System.ServiceModel.Description.WsdlImporter to import the WSDL using the custom WSDL importer, and the System.ServiceModel.Description.ServiceContractGenerator to compile WCF client code with the WSDL annotations as /// and ''' comments in C# and Visual Basic.
- Custom Secure Metadata Endpoint
Demonstrates how to implement a service with a metadata endpoint that uses a binding that is not the default binding, and how to configure ServiceModel Metadata Utility Tool (Svcutil.exe) or clients to fetch the metadata from such a metadata endpoint.
See Also
Other Resources
Set Up Instructions
Troubleshooting Tips for WCF Samples
© 2007 Microsoft Corporation. All rights reserved.