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.

Onward!

Glenn Gailey