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

必要条件

(1)wcf服务已经运行。

(2) behaviors>

      <serviceBehaviors>

        <behavior name="CoreServiceBehavior">

          <serviceMetadata httpGetEnabled="true"/>

        </behavior>

      </serviceBehaviors>

    </behaviors>

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