在webservice找不到web方法

1web.config配置

 <webServices>
      <protocols>
        <add name= "HttpGet" />
        <add name= "HttpPost" />
        <add name= "Unknown" />
        <add name= "HttpSoap" />
      </protocols>
      <conformanceWarnings>
        <remove name='BasicProfile1_1'/>
      </conformanceWarnings>
    </webServices>

2.仅在类的定义上有ScriptService特性的web服务才能从脚本中调用

.

3.方法上是否加了修饰

  [WebMethod(EnableSession = true)]
  [ScriptMethod(ResponseFormat = ResponseFormat.Json)]

猜你喜欢

转载自blog.csdn.net/weixin_42413952/article/details/83006366