开发者

WCF -- How to disable client's ability to generate proxies and see the "you have created a service" page

开发者 https://www.devze.com 2023-01-31 11:59 出处:网络
I was wondering if there was a way in WCF to prevent the client from generating proxies by using the svcutil?Also, is there a way to prevent the client from being able to type the service address in t

I was wondering if there was a way in WCF to prevent the client from generating proxies by using the svcutil? Also, is there a way to prevent the client from being able to type the service address in the web brower and having the default instructional page come up -- the one that reads, "You have created a service" and tells the开发者_如何学编程 client how to generate a proxy?


I believe you're looking for the <serviceMetadata httpGetEnabled="false" /> setting under the serviceBehavior (in web.config).

EDIT Also, probably want to remove the mex endpoint.

0

精彩评论

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