开发者

WCF endpoint address, default still available after specifying an address

开发者 https://www.devze.com 2022-12-21 00:33 出处:网络
These are my endpoints endpoint name=\"rest\" address=\"\" binding=\"webHttpBinding\" behaviorConfiguration=\"poxBehavior\"

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 add开发者_Python百科ress would not exist as I have set the address to 'rest'.

What am I doing wrong or misunderstanding?

Cheers


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??

0

精彩评论

暂无评论...
验证码 换一张
取 消