反思与世界碳纤维
我想从应用程序使用的 Web 服务中获取所有操作\方法的列表。例如:如果有一个 webservice1 并且应用程序 A 正在使用 Webservice1 那么我希望能够以某种方式找出应用程序 A 正在使用的所有操作。我对所公开的所有方法的列表不感兴趣Web 服务接口,但只对应用程序中使用的接口感兴趣。
我正在尝试使用反射来加载应用程序程序集。使用反射我能够缩小应用程序中的服务引用范围,并且还能够获取公开 Web 服务接口的操作列表,但无法获取任何处理方式获取应用程序中消耗的操作列表?我们可以通过Reflection得到这样的信息吗?
I want to get a list of all the Operations\Methods from a webservice that are consumed by an application. For example: if a there is a webservice1 and application A is consuming Webservice1 then i want to be able to somehow find out all the operations that application A is consuming.I'm not interested in list of all the methods that are being exposed by the web service Interface but only interested in the one being consumed in the application.
I'm trying to use Reflection to Load the Application Assembly.Using Reflection i was able to narrow down the Service references in the application and also am able to get the list of operations exposed the web service interface but not able to get any handle how to get the list of operations consumed in the application? Can we get such information through Reflection?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
无法静态预测客户端可能对 WCF 服务调用哪些操作。发现客户端实际调用内容的一种便捷方法是让服务器生成 WCF 跟踪。
It is not possible to statically predict what operations a client might call on a WCF service. One convenient way to discover what the client does actually call is to have the server generate a WCF trace.