Fork me on GitHub
使用SVCUtil.exe生成客户端代理类和配置文件

Demo:

SVCUtil.exe 目录:C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin 下

生成代码命令:

SvcUtil /language:c# /out:HellowWCFServiceClient.cs /config:App.conifg http://localhost:8371/HelloWCFService

上面命令指定了要生成代码的语言、代码文件和配置文件名、WCF服务端地址(注意:运行命令式必须确定WCF服务端正在运行中

posted on 2010-08-02 12:22  HackerVirus  阅读(563)  评论(0编辑  收藏  举报