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:
- Click on the Tools menu,
- Click on the Internet Options sub-menu,
- Click on the Content tab,
- Click on the Settings button of the Feed section to bring up Feed Settings dialog box,
- Un-check the Turn On Feed Reading View option.
精彩评论