端点地址问题
我有一个名为 DataService 的 WCF 服务,它托管在 IIS 中的 DataService 虚拟目录中。它的位置是 http://localhost:5555/DataService
当我配置端点时,我应该在端点地址中写入什么?
例如 http://localhost:5555/DataService/MyService/
MyService 是物理存在的还是虚拟的并且仅供客户端使用,以便客户端可以使用此端点进行通信?
I have a WCF Service named DataService which is hosted in IIS in DataService Virtual Directory. Its location is http://localhost:5555/DataService
When I configure endpoints what should I write in the address of the endpoint?
For example http://localhost:5555/DataService/MyService/
Is MyService physical in existence or it is virtual and just for the client so that client can communicate using this endpoint?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你的问题没有意义。
端点是虚拟的,就像网站 URL 是虚拟的一样。你看不到它;它是一个资源定位器。我的家庭地址也是“虚拟”的,它不是物理的——建筑物是物理的,但建筑物不是地址。
此外,我们在软件中所做的一切都是虚拟的。应用程序不是“物理”事物。
也许您会问虚拟目录是否会影响您的服务的工作方式。这个问题的答案是否,事实并非如此。
您可能会发现 MSDN 上的以下文章很有帮助: http ://msdn.microsoft.com/en-us/library/aa395210%28v=vs.90%29.aspx
Your question does not make sense.
The endpoint is virtual in the same way that a website URL is virtual. You can't see it; it's a resource locator. My home address is also 'virtual', it's not physical - the building is physical, but the building is not the address.
Further, everything we do in software is virtual. An application is not a 'physical' thing.
Perhaps you are asking whether a Virtual Directory affects the way your service works. The answer to that question is NO, it does not.
You might find the following article on MSDN helpful: http://msdn.microsoft.com/en-us/library/aa395210%28v=vs.90%29.aspx