I have been requested to provide an XML feed for Sitecore items, as for example an XML feed for News section, All the fields should be provided using this XML Feeds, I wonder if I can do this using Sitecore.Services.Client? Or if there is a better way to serve this.


Frankly, if you're looking to produce an RSS or ATOM style document, I would use Sitecore's Presentation Device strategy and create an RSS layout of the root page of your News section (for example). In this way you can either render the children (or some sort of query) out as RSS in extremely easy fashion. The "distributable" URL for your RSS feed would include device=rss or something. 'Been doing it that way for as long as Sitecore and RSS have existed together.

You can assign a Controller Rendering as the Device's Layout and have it output the XML directly.

| improve this answer | |

I would think of Sitecore.Services.Client as an API to use in conjunction with SPEAK apps, which however can be used for different purposes. You can also do that using the normal Asp.net MVC web API controllers (Sitecore.Services.Client is based on that).

As an option, you could go for Web Services or WCF, but that is likely an overkill for your case.

| improve this answer | |
  • I decided to go with Sitecore Services Client Entity Service, Now I'm looking for away to make the response in XML format instead of JSON, Is there any way to do that? – Mohammed Syam Aug 10 '17 at 8:50
  • you might need to define an XML action result, check here-> stackoverflow.com/questions/134905/… – Andrey Bobrov Aug 10 '17 at 11:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.