IE为什么不解析WCF数据服务返回的XML? [英] Why doesn't IE parse the XML returned from a WCF Data Service?

查看:88
本文介绍了IE为什么不解析WCF数据服务返回的XML?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我当前正在运行IE8,并且正在使用WCF数据服务进行一些测试.当我在浏览器中调用我的一个收藏夹时,会得到

I am currently running IE8 and am doing some testing with WCF data services. When I make a call to one of my collections in the browser I get the

您正在查看的Feed中包含经常更新的内容..."

"You are viewing a feed that contains frequently updated content..."

消息,并且不会显示任何XML,因为它不能理解Atom内容元素.但是,我可以轻松地在Chrome中进行相同的RESTful调用,甚至可以使用Fiddler并看到响应就可以了.

message and none of the XML is displayed because it must not understand the Atom content element. However I can easily make this same RESTful call in Chrome or even use Fiddler and see the repsonse just fine.

是否有某些原因导致IE无法解析从WCF数据服务返回的XML,或者设置为可以更改以直接查看它?我显然有解决方法,所以这不是关键问题,但是如果我必须使用IE来查看响应,这将有所帮助.

Is there some reason IE cannot parse the XML returned from my WCF data service, or setting I can change to view it directly? I obviously have work-arounds so this isn't a critical issue but it would help if I have to use IE to view the response.

谢谢!

推荐答案

如果要在IE8中查看XML,请单击

If you want to view in IE8 the XML, click

工具> Internet选项.

Tools > Internet Options.

  1. 工具> Internet选项.
  2. 选择内容标签
  3. Feeds and Web Slices 下,选择 Settings
  4. 高级部分下,取消选中打开供稿阅读视图
  1. Tools > Internet Options.
  2. Select the Content Tab
  3. Under Feeds and Web Slices, select Settings
  4. Under Advance section untick Turn on Feed reading view

如果您现在查看OData页面,则不会显示供稿查看器,但是数据将以XML显示.

If you now review your OData page, the feed viewer will not be showing, but the data will be displayed in XML.

这篇关于IE为什么不解析WCF数据服务返回的XML?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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