在wcf中创建端点 [英] creating endpoints in wcf
本文介绍了在wcf中创建端点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
先生,
听说我们只需要在托管服务时指定端点.
是真的!
我对端点的概念感到困惑,有人可以简单地描述何时指定端点?"
sir,
I heard that we need to specify endpoints only while hosting service.
is it true!
I have confused with the concept of endpoint can anyone describe it simply "when are we specifying endpoints?"
推荐答案
WCF服务是一个公开端点集合的程序.每个端点都是与世界交流的门户.
所有WCF通信都是通过端点进行的.终点包括三个部分.它们是ABC-地址,约束力,合同.
WCF Service is a program that exposes a collection of Endpoints. Each Endpoint is a portal for communicating with the world.
All the WCF communications are take place through end point. End point consists of three components. They are ABC - Address, Binding, Contract.
<endpoint
address="http://localhost:8090/MyService/MathService.svc"
binding="wsHttpBinding" contract="IMathService"/>
在上面的配置条目中,端点通过基于IMathService接口的wsHttpBinding引用提到的地址.希望可以澄清.
In the above config entry, endpoint refers to the mentioned address via wsHttpBinding based on IMathService interface. Hope, it clarify.
这篇关于在wcf中创建端点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文