WCF svcutil automatically generates the WCF client proxy and configuration file command

Source: Internet
Author: User

As before, you can easily find some small things after recording them. The simplest way to call WCF is to use the [service reference] provided by Vs to find the WCF Service you want to call and add it to the project. This method automatically adds a client delegate and a file similar to reference. CS in the WCF Service configuration file to the project. In addition, if you do not want to add [service reference], there is another method. The svcutil tool is used to generate the client proxy file and configuration file. Then, you only need to add the CS file to the project and copy the content in the configuration file to the configuration file in the project.

Svcutil uses the/language,/Out, And/config parameters respectively. Which language does they correspond to? The exported CS path. The specific commands for exporting the configuration file path are as follows. The exported ssclient. CS and SS. config respectively contain the client delegate class and client WCF configuration. It should be noted that this method depends on the scenario where WCF has metadata declarations.

Related Article

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.