如何检查项目中使用的Web服务 [英] How can I check the web services used in my project

查看:97
本文介绍了如何检查项目中使用的Web服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个ASP .net c#解决方案。它使用一些Web服务来更新数据库值。如何检查项目中使用的所有Web服务。我想知道所有服务的网址。你能帮我么。



注意:我不想要我创建的服务。我只想要我的解决方案所使用的服务。



先谢谢。

I have a ASP .net c# solution. It is using some web services to update the database values. How can I check all the web services that are used in my project.? I want to know the urls of all the services. Can you please help me.

NOTE: I don't want the services that created by me. I want only the services that are used by my solution.

Thanks in Advance.

推荐答案

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.


这篇关于如何检查项目中使用的Web服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆