1、新建asp.net web 应用程序
2、添加web 服务webservice.asmx
public string HelloWorld(int a) { if (a==1) { return "ceshi11"; } else { return "helloword"; } }
3、直接运行 界面可以选择输入参数
转载于:https://www.cnblogs.com/eric-gms/p/5607281.html