消除WEB SERVICE中出现的“请求格式无法识别”错误

 webServices 项目的 Web.config <system.web>里加上:

<webServices>
     <protocols>
       <add name="HttpPost" />
       <add name="HttpGet" />
     </protocols>
</webServices>

 

[WebMethod(Description="This method call will get the company name and the price for a given security code.",EnableSession=false)]

代码里将EnableSession=false 删除或改成EnableSession=true

你可能感兴趣的:(web Service)