WCF endpoint discovery from a client; Is it possible?

流过昼夜 提交于 2019-12-11 04:53:37

问题


I think my question is a simple one. Is it possible for a web client to discover what methods are available from a particular WCF service (by way of http://the.web.server/SomeWCFService.svc)?

This is not something that we're trying to do but rather we're trying to discover how vulnerable our services are and we're looking into ways to make them a little more secure.

Thanks in advance.


回答1:


The following MSDN article should address your concern, as it clearly states that a client must have prior knowledge of the service address prior to discovery. (The article then discusses how you could enable dynamic discovery, which does not seem like what you want):

"All the Windows Communication Foundation (WCF) calls possible with the Microsoft .NET Framework 3.5 share two constraints. First, the port or pipe assigned to the service must be available. The application developer or administrator literally has to guess or have some way of reserving them. Second, the client must apriori know the address of the service endpoints, both the port number and the service machine, or the pipe name."

http://msdn.microsoft.com/en-us/magazine/ee335779.aspx



来源:https://stackoverflow.com/questions/21435816/wcf-endpoint-discovery-from-a-client-is-it-possible

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!