请求格式是无法识别的URL中意外结束 [英] Request format is unrecognized for URL unexpectedly ending in

查看:1112
本文介绍了请求格式是无法识别的URL中意外结束的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是不是一个问题 - 在这里张贴供参考:

在消费一个WebService,我得到了以下错误:


  

请求格式是无法识别为URL意外结束在的 / myMethodName



解决方案

上找到<一个解决方案href=\"http://aspadvice.com/blogs/ssmith/archive/2007/09/04/FIX-Request-format-is-unrecognized-for-URL-unexpectedly-ending-in.aspx\">this网站

所有你需要的是以下内容添加到你的web.config

 &LT;结构&gt;
    &LT;&的System.Web GT;
    &LT;&Web服务GT;
        &LT;&协议GT;
            &LT;添加名称=HTTPGET/&GT;
            &LT;添加名称=HttpPost/&GT;
        &LT; /协议&GT;
    &LT; / WebServices的&GT;
    &LT; /system.web>
&LT; /结构&gt;

这更多信息微软

This is not a question - posting it here for reference:

When consuming a WebService, I got the following error:

Request format is unrecognized for URL unexpectedly ending in /myMethodName

解决方案

Found a solution on this website

All you need is to add the following to your web.config

<configuration>
    <system.web>
    <webServices>
        <protocols>
            <add name="HttpGet"/>
            <add name="HttpPost"/>
        </protocols>
    </webServices>
    </system.web>
</configuration>

More info from Microsoft

这篇关于请求格式是无法识别的URL中意外结束的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆