开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜