WCF生成客户端对象方式解析

http://www.cnblogs.com/jillzhang/archive/2008/07/26/1252171.html

必要条件

(1)wcf服务已经运行。

(2) behaviors>
      <serviceBehaviors>
        <behavior name="CoreServiceBehavior">
          <serviceMetadata httpGetEnabled="true"/>
        </behavior>
      </serviceBehaviors>
    </behaviors>

说明支持http,所以用http发布节点生成客户端和配置文件(output.config为配置文件,WatchServer.cs为客户端的代理直接可以使用)

原文地址:https://www.cnblogs.com/lzjsky/p/2100763.html