OData service into Feed Manager issue

If you have questions about using mojoPortal, you can post them here.

You may want to first review our site administration documentation to see if your question is answered there.

This thread is closed to new posts. You must sign in to post in the forums.
7/23/2012 5:36:55 AM
Gravatar
Total Posts 128

OData service into Feed Manager issue

I've been experimenting with setting up OData services, and wondered if I could consume and display one using the mojoPortal Feed Manager (which supports Atom according to the docs).

Having some bother with this, I tried connecting to an external OData service, for example, I've tried connecting to the "Titles" entity in the NetFlix service http://odata.netflix.com/v2/Catalog/Titles

On viewing the page in mojoPortal, I get a crash, and the System Log contains this (below). Does this mean that the Feed Manager is expecting a certain set of properties, and something about the entry author is missing? (the same service can display in IE as if it were a feed).

2012-07-23 11:17:51,510 ERROR (null) - (null) - (null) - mojoPortal.Web.FeedUI.FeedCache - There was a problem trying to read the feed for url http://odata.netflix.com/v2/Catalog/Titles.  Ignoring.
System.ArgumentNullException: Value cannot be null.
Parameter name: value
   at Argotic.Syndication.AtomPersonConstruct.set_Name(String value)
   at Argotic.Syndication.AtomPersonConstruct.Load(XPathNavigator source)
   at Argotic.Syndication.AtomPersonConstruct.Load(XPathNavigator source, SyndicationResourceLoadSettings settings)
   at Argotic.Data.Adapters.Atom10SyndicationResourceAdapter.FillEntryCollections(AtomEntry entry, XPathNavigator source, XmlNamespaceManager manager, SyndicationResourceLoadSettings settings)
   at Argotic.Data.Adapters.Atom10SyndicationResourceAdapter.FillEntry(AtomEntry entry, XPathNavigator source, XmlNamespaceManager manager, SyndicationResourceLoadSettings settings)
   at Argotic.Data.Adapters.Atom10SyndicationResourceAdapter.FillFeedCollections(AtomFeed feed, XPathNavigator source, XmlNamespaceManager manager, SyndicationResourceLoadSettings settings)
   at Argotic.Data.Adapters.Atom10SyndicationResourceAdapter.Fill(AtomFeed resource)
   at Argotic.Data.Adapters.SyndicationResourceAdapter.FillAtomResource(ISyndicationResource resource, SyndicationResourceMetadata resourceMetadata)
   at Argotic.Data.Adapters.SyndicationResourceAdapter.Fill(ISyndicationResource resource, SyndicationContentFormat format)
   at Argotic.Syndication.GenericSyndicationFeed.Load(XPathNavigator navigator, SyndicationResourceLoadSettings settings, SyndicationResourceLoadedEventArgs eventData)
   at Argotic.Syndication.GenericSyndicationFeed.Load(Uri source, ICredentials credentials, IWebProxy proxy, SyndicationResourceLoadSettings settings)
   at Argotic.Syndication.GenericSyndicationFeed.Create(Uri source, ICredentials credentials, IWebProxy proxy, SyndicationResourceLoadSettings settings)
   at mojoPortal.Web.FeedUI.FeedCache.GetRssFeedEntries(Int32 moduleId, Guid moduleGuid, Int32 entryCacheTimeout, Int32 maxDaysOld, Int32 maxEntriesPerFeed, Boolean enableSelectivePublishing)

7/23/2012 1:32:19 PM
Gravatar
Total Posts 18439

Re: OData service into Feed Manager issue

I have no idea, my understanding is that odata extends atom, the error looks like it extends it in a way that argotic (which we use for feeds) doesn't like. That said, I tried this odata feed http://packages.nuget.org/v1/FeedService.svc and it worked, so apparently some odata can work. Unfortunately last time I checked no-one is maintaining Argotic and it hasn't been updated since 2008, but I'm not aware of any better replacement for it at this time.

If you really want to consume odata, you could implement your own solution, if you google you can find some javascript and jquery ways of consuming and rendering odata

 

7/23/2012 2:18:33 PM
Gravatar
Total Posts 537
feet planted firmly on the ground

Re: OData service into Feed Manager issue

Looking at the Nuget Packages service, I think the difference is they populate the author name

<author>
  <name>Venkat Polur</name>
  </author>

whereas the feed that failed left this empty.  Argotic maybe expects this to be present.

Background... I was considering whether an OData service could save having to develop separate RSS feeds for a project.

You must sign in to post in the forums. This thread is closed to new posts.