错误的加入web服务 [英] error on adding webservice

查看:509
本文介绍了错误的加入web服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚创建与Visual Studio 2010和.NET 4 Web服务,并发布到自己的网站子域。 [子有虚拟目录,我已经设定的规则。
当我尝试我的web服务从添加服务REFFERENCE=>高级=>添加Web REFFERENCE添加到其他C#项目,它只是告诉我在Web服务发现一节这个错误

i just created a webservice with visual studio 2010 and .net 4, and published it to my website subdomain. [subdomain has virtual directory and i have set the rules]. when i try to add my webservice to other c# project from "add service refference" => "advanced" => "add web refference" it just show me this error in "webservice found section"

在URL中的文件 http://service.proapp.ir/sedardIP.asmx 未被识别为已知的文档类型。
从每个已知类型的错误消息可能会帮助您解决问题:

The document at the url http://service.proapp.ir/sedardIP.asmx was not recognized as a known document type. The error message from each known type may help you fix the problem:

我添加的.svc应用程序/八位字节为MIME,但一切都没有改变,我增加

i added .svc application/octet to mime but nothing has changed i added

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

太多,但一切都没有改变,u能plz帮助我?????????????

too but nothing has changed , can u plz help me?????????????

尝试添加REFFERENCE没有先进的投掷这个错误:

在URL service.proapp.ir/sedardIP.asmx文档未被识别为已知的文档类型。
从每个已知类型的错误消息可能会帮助您解决问题:
- 从XML架构的报告是'的文档格式不能识别(内容类型是'text / html的;字符集= utf-8')。。
- 从DISCO文档报告是有一个错误下载'service.proapp.ir/service/sedardIP.asmx?disco。。
   - 请求失败,HTTP状态404:未找到。
- 从 http://service.proapp.ir/sedardIP.asmx 报告是著名的'文档格式无法识别(内容类型是'text / html的;字符集= UTF-8)。
- 从WSDL文档报告是'的文档格式不能识别(内容类型是'text / html的;字符集= utf-8')。。
元数据包含无法解析的引用:service.proapp.ir/sedardIP.asmx。
元数据包含无法解析的引用:service.proapp.ir/sedardIP.asmx。
如果该服务在当前的解决方案定义,尝试构建解决方案,并再次添加服务引用。

The document at the url service.proapp.ir/sedardIP.asmx was not recognized as a known document type. The error message from each known type may help you fix the problem: - Report from 'XML Schema' is 'The document format is not recognized (the content type is 'text/html; charset=utf-8').'. - Report from 'DISCO Document' is 'There was an error downloading 'service.proapp.ir/service/sedardIP.asmx?disco'.'. - The request failed with HTTP status 404: Not Found. - Report from 'http://service.proapp.ir/sedardIP.asmx' is 'The document format is not recognized (the content type is 'text/html; charset=utf-8').'. - Report from 'WSDL Document' is 'The document format is not recognized (the content type is 'text/html; charset=utf-8').'. Metadata contains a reference that cannot be resolved: 'service.proapp.ir/sedardIP.asmx'. Metadata contains a reference that cannot be resolved: 'service.proapp.ir/sedardIP.asmx'. If the service is defined in the current solution, try building the solution and adding the service reference again.

推荐答案

在我的经验,将您的Web服务引用直 - 而不是要在高级部分 - 从服务参考板从来没有引起我任何问题。
也许尝试。

In my experience, adding your web service reference straight - instead of going in the advanced section - from the service reference panel has never caused me any problem. Perhaps try that.

如果做不到这一点,这将工作:

Failing that, this will work:

尝试同样的过程服务引用&GT;添加服务引用通过以下网址

try the same process service reference > add service reference with the following url

http://service.proapp.ir/sedardIP.asmx?WSDL

这篇关于错误的加入web服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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