想要调试从Web应用程序调用的WebService [英] Want to debug WebService which is being called from a web application

查看:114
本文介绍了想要调试从Web应用程序调用的WebService的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个网络应用程序。还有一个Web服务。它们都在同一个解决方案中。

Web应用程序正在使用Web服务。当我从Web应用程序调用Web服务时,我发现找不到对象引用错误。我无法调试web服务,因为服务方法将XML作为输入。



任何人都可以帮助我在这种情况下如何调试。我的意思是我将运行Web应用程序,然后将调用Webservice并将所需的输入(XML)发送到Web服务。此时我想调试Web服务方法以找出错误的根源。

我被卡住了,项目交付受到阻碍。请帮忙。

I have a web application. Also have a web service. Both of them are in same solution.
The Web Application is consuming the web service. When i am calling the web service from the web application, i find a object reference not found error. I cant debug the webservice, as the Service methods take XML as input.

Can anyone please help me how to debug in this situation. I mean i will run the Web Application, then Webservice will be called and the required input will be sent (XML) to Web service. At this point i want to debug the Web service methods to find out the root of the error.
I am stuck and project delivery getting hampered. Please help.

推荐答案

步骤:



1:解决方案 - >设置启动项目 - >选择多个项目(并选择Web和服务)



2:服务项目 - >属性 - >网络 - >选择不要打开页面,等待外部请求。



3:Web项目 - >属性 - > Web的>选择当前页面或StartPage作为您的strting页面(可选)



现在您可以将调试器放在服务项目和调试的方法中。



快乐调试!!
Steps :

1: Solution -> Set StartUp projects -> Choose "Multiple project" (and select both Web and Service)

2: Service project -> Properties -> Web -> Choose "Dont open a page, wait for an external request".

3: Web Project -> Properties -> Web-> choose current page or StartPage as your strting page(optional)

Now you can put debugger inside methods of service project and debug.

Happy debugging!!


这篇关于想要调试从Web应用程序调用的WebService的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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