WCF端点地址,指定地址后默认仍然可用

发布于 2024-08-22 05:00:26 字数 578 浏览 1 评论 0原文

这些是我的端点


端点名称=“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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

妄想挽回 2024-08-29 05:00:26

什么定义了 /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??

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文