Tuesday, October 30, 2012

Oh Add Reference... OData. OData Client Tools for Windows Phone 8 now available (And a VB.Net for WinRT OData article thrown in as a bonus!)

WCF Data Services Blog - OData Client Tools for Windows Phone Apps Now Available

Windows Phone 8 and Windows Phone SDK 8.0 were just announced and we are pleased to announce that OData Client Tools for Windows Phone 8 is also now available from the download center.

OData Client Tools for Windows Phone 8 brings OData V3 support to the Windows Phone platform. This release enables you to consume OData V3 services in your Windows Phone application. More specifically, this exciting release extends the Add Service Reference experience with client-side OData support for developing Windows Phone 7 and Windows Phone 8 applications using Windows Phone SDK 8.0. The tooling adds references that are capable of consuming OData services up to v3.

How can I get the installer?

You can download the installer for OData Client Tools for Windows Phone 8 from the download center. This release is not included with Windows Phone SDK 8.0 and needs to be installed separately. This release model will enable us to make release updates and fixes for the client tools and runtime components in a more efficient way.

If you don’t install the client tools and start using Add Service Reference to consume an OData service you will be prompted with a message such as the below:

...

What is in this release?

As mentioned at the beginning, this release brings OData V3 support to Windows Phone platform. You can now write Windows Phone 7.1 and Windows Phone 8 applications using Windows Phone SDK 8.0 and take advantage of exciting OData v3 features like:

  • Spatial: You can now take advantage of the spatial support in OData v3 to create location aware OData enabled phone apps
  • Actions: You can now invoke actions defined on an OData V3 service.
  • Any/All Queries: You can now express queries like “are there any customers which have no orders”
  • Vocabularies: You can now consume vocabularies for creating richer experiences on Windows Phone applications
  • Properties Defined on Subtypes: You can now have better inheritance support by consuming models which have properties (primitive, complex and navigation) defined on subtypes of the base type associated with the set.
  • ODataLib/EdmLib: You can now use these lower level libraries on Windows Phone.

..."

Microsoft Downloads - OData Client Tools for Windows Phone Apps

The OData Client Tools for Windows Phone Apps installer brings OData v3 support for Windows Phone apps and extends the Add Service Reference experience with client-side OData support for developing Windows Phone 7 and Windows Phone 8 applications using Windows Phone SDK 8.0.

Version: 1
Date published: 10/29/2012

Language: English

WcfDataServicesWindowsPhone.exe, 7.9 MB

The OData Client Tools for Windows Phone Apps installer extends the Add Service Reference experience with client-side OData support for developing Windows Phone 7 and Windows Phone 8 applications using Windows Phone SDK 8.0. The tooling will add references capable of consuming OData services up to v3.

Supported operating systems: Windows 8

  • Prerequisite:
  • Other Requirements:
    • Microsoft .NET Framework 4.5
    • Microsoft Visual Studio 2012 with Windows Phone SDK 8.0 or Microsoft Visual Studio Express 2012 for Windows Phone 8

..."

.NET, VB.NET, Windows 8, Windows Store App - Accessing and OData Feed in WinRT App using Visual Basic.NET

"As I’ve been searching the internet to try and find ways of accessing OData Feeds in visual basic .net and not finding much help I thought I’d put together a small example to help others.

This will use a demo OData feed to pull customer records from an example banking application. The feed is located in an Azure Cloud Service and is accessed by the following URL

http://t24irisdemo.cloudapp.net/tbank/Wealth.svc/

(This feed may be removed in the future)

The first thing to do is create a Visual Basic Blank Windows Store XAML application.

Also add a basic page called CustomerPage.

..."

We've got some C#, VB.Net and OData! What more could you want? (okay, okay... I know. It's been a long day... ;). But seriously, this tool will make consuming OData much easier. As for the VB post, VB needs some post love too...

No comments: