Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why doesn't IE parse the XML returned from a WCF Data Service?

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

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

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.

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.

Thanks!

like image 541
atconway Avatar asked Apr 26 '12 20:04

atconway


2 Answers

If you want to view in IE8 the XML, click

Tools > Internet Options.

  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

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

like image 139
Cann0nF0dder Avatar answered Oct 12 '22 01:10

Cann0nF0dder


IE 8 and 9 just do not support displaying the OData - Atom Pub feed output. In IE9, the following explanation is provided:

Internet Explorer does not support this feed format.

Supported feed formats

  • ATOM 0.3, 1.0
  • RSS 0.91, 0.92
  • RSS 1.0
  • RSS 2.0

However, there are several easy ways to still view the output from the DataService RESTful call:

  1. View the pages's source in IE. Guess what the output is there!
  2. Use Fiddler to inspect the response.
  3. Use another browser like Chrome and the response will be output directly in the browser.

Maybe IE 10 will have better support of displaying and supporting a feed based on a protocol (OData) created by the very people that created and own IE: Microsoft.

like image 40
atconway Avatar answered Oct 12 '22 02:10

atconway