WCF endpoint address, default still available after specifying an address
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??
精彩评论