【发布时间】:2010-08-13 04:25:39
【问题描述】:
假设 serviceUrl 是从 exe.config(IDE 中的 app.config)中读取的
var binding = new WSHttpBinding();
...
client = new ContentServiceClient(binding, new EndpointAddress(serviceURL));
我是否只需要 exe 本身(没有依赖关系)和 exe.config 让这个客户端调用其他盒子上的服务。我在本地运行服务时生成了服务引用,看起来所有这些文件纯粹是为了从 IDE 进行无参数服务调用。
【问题讨论】:
标签: wcf client console-application