15.08.2013 Views

Ektron CMS400.NET Developer Reference Manual

Ektron CMS400.NET Developer Reference Manual

Ektron CMS400.NET Developer Reference Manual

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Syndicating via .NET<br />

Architecture of RSS Syndication<br />

aspx pages<br />

Syndicating Web Content as RSS<br />

You can use an aspx page as a URL to dynamically create and<br />

return RSS documents.To display an RSS feed on a Web site, the<br />

site administrator identifies the URL of the aspx page. The<br />

aggregator determines how to use the document’s elements, such<br />

as , and , to display the syndicated<br />

content.<br />

The sample aspx templates (RSS_ListSummary.aspx and<br />

RSS_Collection.aspx) are installed by default to localhost/<br />

CMS400Example folder. They use the WebService.ContentWS<br />

class to retrieve the collection or list summary data. Then, they<br />

create CollectionToRSS20 or ListSummaryToRSS20. These<br />

classes fill the RSS 2.0 data classes and serialize them to an XML<br />

document, which can be returned as an HTTP response.<br />

Since these pages are part of the <strong>CMS400.NET</strong> sample, you<br />

should modify them or create your own aspx pages for your Web<br />

site. Place your custom pages in the yourwebsite/WebServices/ folder<br />

so that the web.config file is within the path.<br />

Retrieving a Collection or List Summary as an RSS Feed<br />

The left frame of the corporate.aspx page is hardcoded to retrieve<br />

the News Collection. The right frame retrieves a ListSummary.<br />

Creating Your Own aspx Collection Page<br />

To create your own collection page, copy the collection object to an<br />

RSS 2.0 object and serialize it. To accomplish this, use these<br />

methods.<br />

ConvertToRSS(ByVal result CMS400WS.CollectionResult, ByVal<br />

<strong>Ektron</strong> <strong>CMS400.NET</strong> <strong>Developer</strong> <strong>Reference</strong> <strong>Manual</strong>, Version 5.1, Revision 5 566

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!