下载'http://www.abcd.com/api/test/getdetails/$metadata'时出错。请求失败,HTTP状态为400:请求错误。 [英] There was an error downloading 'http://www.abcd.com/api/test/getdetails/$metadata'. The request failed with HTTP status 400: bad request.

查看:319
本文介绍了下载'http://www.abcd.com/api/test/getdetails/$metadata'时出错。请求失败,HTTP状态为400:请求错误。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试将第三方Web API引用添加到我的Web应用程序时。它抛出这样的错误...





下载'http://www.abcd.com/api时出错/测试/ getdetails / $元数据。请求失败,HTTP状态为400:错误请求。



我尝试过:



在Solution Explorer中,右键单击References并选择Add Service Reference,然后选择Advanced选项,再添加Web Reference。将我的API URL粘贴到URL中并按下输入..它显示如下..



在此URL找到的Web服务:

有下载'http://www.abcd.com/api/test/getdetails/$metadata'时出错。

请求失败,HTTP状态为400:错误请求。

When I am trying to add third party web API reference to my web application. it throws the error like this...


There was an error downloading 'http://www.abcd.com/api/test/getdetails/$metadata'. The request failed with HTTP status 400: Bad Request.

What I have tried:

In Solution Explorer, Right click References and choose Add Service Reference then choose Advanced option,then add Web Reference. Paste my API URL in URL and press enter.. it shows like this..

Web services found at this URL :
There was an error downloading 'http://www.abcd.com/api/test/getdetails/$metadata'.
The request failed with HTTP status 400: Bad Request.

推荐答案

元数据'。请求失败,HTTP状态为400:错误请求。



我尝试过:



在Solution Explorer中,右键单击References并选择Add Service Reference,然后选择Advanced选项,再添加Web Reference。将我的API URL粘贴到URL中并按下输入..它显示如下..



在此URL找到的Web服务:

有下载'http://www.abcd.com/api/test/getdetails/
metadata'. The request failed with HTTP status 400: Bad Request.

What I have tried:

In Solution Explorer, Right click References and choose Add Service Reference then choose Advanced option,then add Web Reference. Paste my API URL in URL and press enter.. it shows like this..

Web services found at this URL :
There was an error downloading 'http://www.abcd.com/api/test/getdetails/


元数据'时出错。

请求失败,HTTP状态为400:错误的请求。
metadata'.
The request failed with HTTP status 400: Bad Request.


400 Bad Request - HTTP | MDN [ ^ ]:

400 Bad Request - HTTP | MDN[^]:
Quote:

超文本传输​​协议(HTTP)400错误请求响应状态代码表示由于语法无效,服务器无法理解请求。

The HyperText Transfer Protocol (HTTP) 400 Bad Request response status code indicates that the server could not understand the request due to invalid syntax.

在您的情况下,它可能由美元符号来源。试试这个:

In your case it might be sourced by the dollar sign. Try this instead:

http://www.abcd.com/api/test/getdetails/%24metadata



如果无法联系网站管理员。


If that does not help contact the web site's administrator.


这篇关于下载'http://www.abcd.com/api/test/getdetails/$metadata'时出错。请求失败,HTTP状态为400:请求错误。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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