【发布时间】:2012-03-18 20:12:31
【问题描述】:
我正在阅读 WCF .NET 4 常见问题解答。我不确定以下问题的答案。 问:WAS 中托管的 WCF 服务需要 wcf 客户端。服务配置如下:
<service name="abc">
<endpoint binding="netTcpBinding" contract="IMainService">
</service>
服务位于 URL http://servername/wcfservice/abc.svc 应将哪些配置设置添加到 system.serviceModel/client 元素?
答:
<endpoint binding="netTcpBinding" contract="IMainService" address="net.tcp://servername/wcfservice/abc.svc"
client 部分中的地址不应该以http 开头吗?或者服务应该使用net.tcp 公开?或者服务中的绑定应该是http?我需要社区的意见。大家觉得呢?
【问题讨论】:
标签: wcf wcf-client