[WebMethod]
[SoapRpcMethod(
Action = "http://tempuri.org/EASReceive",//注意这行,每个方法与每个方法的值必须不能一样
RequestNamespace = "http://tempuri.org/",
ResponseNamespace = "http://tempuri.org/",
Use = System.Web.Services.Description.SoapBindingUse.Literal)]
public string HelloWorld()
{
return "Hello World";
}
其中SoapRpcMethod是必须要加的

本文介绍如何使用SoapRpcMethod属性来定义WebService方法,并强调了Action参数的重要性,确保每个方法的Action值唯一。
1143

被折叠的 条评论
为什么被折叠?



