且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何检查项目中使用的Web服务

更新时间:2023-08-31 17:22:22

In您预计您可能使用服务参考来使用Web服务,或者您可能直接调用Web服务(没有服务参考)。因此,为了管理这两种情况,您必须:



1.首先,您应该使用解决方案资源管理器在项目中查找所有使用过的服务引用。 />


2.然后,您应该通过搜索下一个班级名称
In you project you may have web services used by using "Service Reference" or you may have calling to web services directly (without Service Reference). So in order to manage both case you have to:

1. First you should look in your project for all used "Service References" by using Solution Explorer.

2. Then you should search for direct call to the web service by searching the next class name
WebService 

来搜索对Web服务的直接调用。

.


在项目的web.config中使用.asmx扩展名搜索过程是查找项目中使用的服务的***方法吗?



如果找到它,那么很容易找到项目中使用该服务类的位置。
The Searching process with .asmx extension in your web.config of the project is the best approach to find whether the service used in your project or not?

If it is found then that is easy to find out that where that service class is consumed in your project.