Svcutil usage instructions (generate proxy class)

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.