wcf 为什么客户端需要与服务相同的端点?
为什么客户端需要与服务相同的端点? 客户端是否会查找其端点中的地址,并且服务将使用其放入其端点中的地址进行侦听???
why does a client need the same endpoint as the service?
Is it that the client looks to the address which is in its endpoint, and the service will listen with the address that it has put in his endpoint???
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
简单的答案是,服务和客户端必须就通信机制达成一致 - 这就是端点的用途。
换句话说,他们必须就端点定义达成一致。
但是,事情比实际情况要复杂一些,
listenUri
定义,其中客户端可以通过定义clientVia
端点行为来发送消息,The simple answer is that the service and client must agree on the mechanics of communication - that's what the endpoint is for
In other words they must agree on the endpoint definition
However, things are a little more complex than that in reality
listenUri
which the client can send messages to by defining aclientVia
endpoint behavior