OData on Windows 8: Part 2—The OData Client Library for Metro

In the previous post Running WCF Data Services on Windows 8 Consumer Preview- Part 1, I described running WCF Data Services on the Windows 8 desktop…but what I have really been wanting to do is write a Win8 Metro style app that consumes an OData feed. I started messing around with the Windows 8 Metro quickstart that consumes Atom feeds (just like OData right), but I really didn’t want to have to parse XML on the client and it took a bit of time for me to really “grok” the new Metro templates in Visual Studio 2012.

I was glad to see that in the meantime Phani Raj has gone ahead and completed the exact same OData-based Windows 8 Metro app that I was planning, which accesses the Netflix OData feed and displays titles data grouped by genre. (Great minds think alike—but some just code faster…way to go Phani!) You can see the details of his new app in the post Developing Windows 8 Metro style applications that consume OData.

The best news is that rather than having to parse raw Atom XML, this app uses a preview release of the OData client library for Windows 8 Metro style apps, which Phani has uploaded as a .zip in this post. The library still only speaks Atom, but it works very much like the WCF Data Services 5.0 client library for Silverlight—with only the async APIs included.

Please leave any comments about his app or the new OData library on Phani’s blog post.


Glenn Gailey
Comments (3)
  1. I'm really pumped to see this! You should do another post just like Phani Raj's app but but dive deeper into the code. Do something cool like downloading/uploading blob data or geographical data types since winrt has location services.

  2. C:Marius says:

    What would really be helpful would be a full real-life MVVM based architecture to use with Windows 8 Metro Applications in how to integrate WCF Data Services into the MVVM while doing async calls.

    I can say I've been using the OData for W8 Metro for few weeks now with good results while performing simple queries, whereas stuff like "Include" not working put me off a little.

    Great work for the whole team nevertheless, looking forward for the final release,


  3. @Matt, that's a great idea, but unfortunately my time is being taken up by a non-OData thing–which I will reveal shortly. Maybe after that I will find some time for this (or maybe Phani will beat me to it again).

    @Marius, when you say "Include not working" what exactly do you mean? Have you run a fiddler trace to see that the $expand query option isn't returning related entities or is it just a difficulty with binding to the MVVM?



Comments are closed.

Skip to main content