开发者

how to make wcf results appear in raw xml in the browser?

I am invoking .NET WCF data service. Everything seems to be working fine, but the results show as RSS feeds in both IE9 and Firefox 7. IE only shows the date, and both browsers helpfully offer me to subscribe to this feed. If I view source, it looks properly <feed ...

So, a开发者_StackOverflowpparently, browsers have XSLT template that makes it appear as RSS feed. Is there a way to disable this transformation and view the results as raw XML?


View source.

You can also send the requests Fiddler, which has an XML inspector.


Somebody sent me a link to solution by email. Essentially, in Firefox it's impossible (if somebody knows the way - that would be great, but the suggestion is to fill first 512 bytes with comments). And in IE do the following:

  1. Click on the Tools menu,
  2. Click on the Internet Options sub-menu,
  3. Click on the Content tab,
  4. Click on the Settings button of the Feed section to bring up Feed Settings dialog box,
  5. Un-check the Turn On Feed Reading View option.
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜