如何调试这种web服务 [英] how to debug this kind of webservice

查看:41
本文介绍了如何调试这种web服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

HI专家,

 

我使用.net 2005开发asmx Web服务,参数是class,但我无法调试此项目

I use .net 2005 to develop a asmx web service, and the parameter is a class, but I can't debug this project




The test form is only available for methods with primitive types as parameters. 

 

先谢谢。

 

 

推荐答案

一种方法是创建一个简单的控制台应用程序,添加对webservice的引用,visual studio将为您在项目中生成类数据类型。之后,实例化数据类的新实例并将其传递给参数,然后如果需要,可以单步执行
。又快又脏。

One approach is to create a simple console application, add a reference to your webservice, visual studio will generate the class data type for you in the project. After that, instantiate a new instance of your data class and pass it to the parameter, then you can step through if you want. Quick and dirty.



告诉我这听起来不错


Tell me if this sounds ok


这篇关于如何调试这种web服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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