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.
精彩评论