当项目中包含一个web services , 调用时会遇到这个错误
Request format is unrecognized for URL unexpectedly ending in ....
引起这个错误的原因是:
Add the following to web.config since GET and POST are disabled by default in ASP.NET 2.0 and greater
所以要在web.config中加入一些配置才能enable Get and POST
<configuration>
<system.web>
<webServices>
<protocols>
<add name="HttpGet"/>
<add name="HttpPost"/>
</protocols>
</webServices>
</system.web>
</configuration>