2011-02-16 68 views
0

IM试图在这个地址 http://myluckyday.fr/orange/actus.php 通过VS2010达到一个Web服务,我得到这个错误信息:错误,而我试图达成一个Web服务

在URL http://myluckyday.fr/orange/actus.php文档未被识别为已知文件类型。 来自每种已知类型的错误消息可能会帮助您解决问题: - 来自'XML Schema'的报告是'W3C XML Schema的根元素应该是'其名称空间应该是'http://www.w3.org/2001/XMLSchema的 ''。 - 来自'DISCO文档'的报告是'找不到URL http://myluckyday.fr/orange/actus.php处的发现文档'。 - 无法识别文档格式。 - 来自'WSDL文档'的报告是'XML文档中存在错误(1,45)'。 - 没有预料到。 元数据包含无法解析的引用:'http://myluckyday.fr/orange/actus.php'。 响应消息的内容类型application/xml与绑定的内容类型(application/soap + xml; charset = utf-8)不匹配。如果使用自定义编码器,请确保IsContentTypeSupported方法正确实施。答复的前1024个字节是:'Indemnit de rupture c ...评论enregistrer l'indemn ... http://www.pro.orange.fr/ImgEntrepreneurActu/110918_1295942777_rupture-contrat-illus-e.jpghttp: //www.myluckyday.fr/orange/actus.php?id=205EIRL:les porteurs de ... Alors que le nouveau statut ... http://www.pro.orange.fr/ImgEntrepreneurActu/110870_1295860277_protection-patrimoine- 06-e.jpghttp://www.myluckyday.fr/orange/actus.php?id = 201D emplo emplo emplo ... http http http http http http http http http http http http http pro.orange.fr/ImgEntrepreneurActu/110916_1295886094_handicap-couloir-e.jpghttp://www.myluckyday.fr/orange/actus.php?id=207Espace fumeurs:un no ... Les affichettes signalant le ... http:///www.pr”。 如果服务在当前解决方案中定义,请尝试构建解决方案并再次添加服务引用。

任何人都有一个想法,我该如何解决这个问题?

回答

0

这听起来像你试图将该URL添加为服务引用,但该URL是用于RSS提要,而不是用于Web服务。如果您正在尝试为Windows Phone 7构建一个RSS阅读器,那么您可能会发现这篇文章很有用:http://cespage.com/silverlight/wp7tut17.html

+0

嗨derek,ty为你的回复,我要试试你的链接,这似乎很有帮助,但我的工友android和Ios像这样使用这个链接。我已经阅读了很多教程,他们说你可以在“服务参考”中添加一个URL – user569574 2011-02-16 10:40:41