WCF端点地址,指定地址后默认仍然可用
这些是我的端点
端点名称=“rest”地址=“”绑定=“webHttpBinding” 行为配置=“poxBehavior” Contract =“IActionService”
端点地址=“mex”绑定=“mexHttpBinding”contract=“IMetadataExchange”
/此处”时,该服务可用
当我将地址更改为[说]'rest'
端点名称=“rest”地址=“ 休息”绑定=“webHttpBinding” 行为配置=“poxBehavior” 合约=“IActionService” 端点地址=“mex”绑定=“mexHttpBinding”合约=“IMetadataExchange”
然后可以在/rest/here使用该服务。
这是有道理的,但它也可以从 /here 的原始地址获得,
我认为原始地址不会存在,因为我已将地址设置为“rest”。
我做错了什么或误解了什么?
干杯
These are my endpoints
endpoint name="rest" address="" binding="webHttpBinding"
behaviorConfiguration="poxBehavior"
contract="IActionService"
endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"
which makes the service available at /here
when I change the address to [say] 'rest'
endpoint name="rest" address="rest" binding="webHttpBinding"
behaviorConfiguration="poxBehavior"
contract="IActionService"
endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"
the service is then available at /rest/here.
which makes sense, but it is also available from the original address of /here
I thought that the original address would not exist as I have set the address to 'rest'.
What am I doing wrong or misunderstanding?
Cheers
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
什么定义了
/here
的基地址?您是否有一个
部分,其中包含
条目?从原始地址“仍然可用”是什么意思?去那里的请求仍然返回有效的结果?更改此配置后是否重置了 IIS?
What defines your base address of
/here
? Do you have a<host>
section with<baseAddress>
entries in it?What do you mean by "still available" from the original address? Requests going there still return valid results?? Have you reset IIS after this config change??