Easy to use:
Svcutil/language: C #/D: \ tests/out: testserviceclient. CS/config: app http: // 10.10.50.19/lbcmscontent/lbcontent. SVC
Other examples
The following command generates client code based on the running service or online metadata document.
svcutil http://service/metadataEndpoint
The following command generates client code based on the Local metadata document.
svcutil *.wsdl *.xsd /language:C#
The following command uses Visual Basic to generate a data protocol type based on the Local Architecture document.
svcutil /dconly *.xsd /language:VB
The following command downloads the metadata document from the running service.
svcutil /t:metadata http://service/metadataEndpoint
The following command generates a metadata document for the service agreement and Associated types in the Assembly.
svcutil myAssembly.dll
The following command generates a metadata document for the services in the Assembly and all associated service agreements and data types.
svcutil myServiceHost.exe /serviceName:myServiceName
The following command generates a metadata document for the Data Type in the Assembly.
svcutil myServiceHost.exe /dconly
Run the following command to verify the service host.
svcutil /validate /serviceName:myServiceName myServiceHost.exe
The following command is used by any service agreement in the AssemblyXmlserializerType generation serialization type.
svcutil /t:xmlserializer myContractLibrary.exe