
Online retrieval follows either the WS-Metadata Exchange protocol or the DISCO protocol (for details see the Metadata Download section). These metadata documents can be on a durable storage, or be retrieved online. Svcutil.exe can generate code for service contracts, clients and data types from metadata documents. Valid values are code, metadata or xmlSerializer. Specifies the output to be generated by the tool. This can be used to register rviceModel extensions without altering the tool's configuration file. Specifies a custom configuration file to use instead of the App.config file. Suppress the copyright and banner message. The following table shows some commonly used options for this tool: Optionĭisplays the command syntax and options for the tool. NET Framework 3.5, Svcutil attempts to use both WS-MetadataExchange and HTTP GET to obtain the STS WSDL. Therefore, if the STS has only exposed the WSDL document using HTTP GET, a client written in WinFX will fail. However, the service can expose its WSDL documents using either WS-MetadataExchange or HTTP GET. When you use Svcutil to access a WSDL document that has a reference to a security token service (STS), Svcutil makes a WS-MetadataExchange call to the STS. NET Framework 3.5 artifact, use the executable from the. NET Framework 4 artifact from svcutil.exe, use the svcutil.exe from the. The tool does not support multi-targeting. It does not apply to any processing of that metadata. This timeout only applies to retrieving metadata over the network. The tool has a five minute timeout when retrieving metadata. These switches do not work when using XmlSerializer. In addition, the /r and /ct switches for referencing types are for generating data contracts. To avoid this when generating code and configuration files, use the /mergeConfig switch.


This can include code files, configuration, or metadata files. Svcutil overwrites existing files on a disk if the names supplied as parameters are identical. How to: Improve the Startup Time of WCF Client Applications using the XmlSerializer How to: Use Svcutil.exe to Download Metadata Documents How to: Use Svcutil.exe to Validate Compiled Service Codeĭownloads metadata documents from running services. How to: Use Svcutil.exe to Export Metadata from Compiled Service Code

Generating a WCF Client from Service MetadataĮxports metadata documents from compiled code. Generates code from running services or static metadata documents. The following table summarizes the various functionalities provided by this tool, and the corresponding topic that discusses how it is used: Task The ServiceModel Metadata Utility Tool can be found at the Windows SDK installation location, specifically %ProgramFiles%\Microsoft SDKs\Windows\v6.0\Bin. The ServiceModel Metadata Utility tool is used to generate service model code from metadata documents, and metadata documents from service model code. ServiceModel Metadata Utility Tool (Svcutil.exe)
