获取WebMethod参数列表

时间:2014-02-19 16:13:57

标签: c# web-services asmx webmethod

我正在开发一个项目,在通过了解其URL来验证其参数后动态调用WebMethod

这是我的尝试:

[WebMethod]
public string CalledService (string myText, int count)
{
    return myText;
}

我所知道的只是它的网址

http://localhost:29740/OnewayWebserviceCall/WebService.asmx?op=CalledService

我需要一个返回{"myText","count"}

之类的函数

我尝试下载URL字符串并搜索其中的参数,但我需要更长时间的效率。

0 个答案:

没有答案