我用C#调用javaweb页面的方法应该返回一个string,但为什么我这里接收的值为null啊,,代码如下public MyMath()
{
this.Url = "****(url)";
}
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("命名空间/SendSms", RequestNamespace = "命名空间/", ResponseNamespace = "命名空间",
Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public string SendSms(string id, string name, string phone, string value)
{
object[] results = this.Invoke("SendSms", new object[] { id, name, phone, value });
return (string)results[0];
}
{
this.Url = "****(url)";
}
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("命名空间/SendSms", RequestNamespace = "命名空间/", ResponseNamespace = "命名空间",
Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public string SendSms(string id, string name, string phone, string value)
{
object[] results = this.Invoke("SendSms", new object[] { id, name, phone, value });
return (string)results[0];
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货