Any examples of using Bing REST services in a C# Metro App?

Answered Any examples of using Bing REST services in a C# Metro App?

  • Thursday, July 19, 2012 9:35 PM
     
     

    Has anyone successfully produced a sample C#/XAML metro style app utilizing Bing REST services???

    Specifically, I'm working on trying to use the imagery service. In my WP7 app, I used the SOAP imagery service. I read, however, that REST is preferred of SOAP. But, I have not seen working examples of either service in a C# Metro app.

    Thanks,

    Rick

All Replies

  • Friday, July 20, 2012 9:50 AM
    Owner
     
     Answered
    Try using the code from the blog post I put together on using the REST services in .NET: http://rbrundritt.wordpress.com/2012/01/06/bing-maps-rest-service-net-libraries/ I have not tested it with the metro apps but there is no reason why this shouldn't work as it works in all the other flavour of .NET apps such as WPF, Silverlight, and standard console type applications.

    http://rbrundritt.wordpress.com

  • Friday, July 20, 2012 12:31 PM
     
     

    Yes, I saw that blog post but didn't study it too closely since it seemed to address web apps using .NET. But I will re-read it and see how far I can get.

    Initially, it appears there is no System.ServiceModel.Web namespace or WebClient class in Metro. But, I need to research it more today.

    Thanks,

    Rick

  • Friday, July 20, 2012 1:21 PM
    Owner
     
     
    You may not need System.ServiceModel.Web, this is only needed in some .NET use cases. As for WebClient, if it is not available you can also use HttpClient. Take a look at this example: http://www.tozon.info/blog/post/2011/09/21/Windows-8-applications-and-JSON-data.aspx

    http://rbrundritt.wordpress.com