Showing posts with label Windows Phone 7 Emulator. Show all posts
Showing posts with label Windows Phone 7 Emulator. Show all posts

Wednesday, October 27, 2010

Steve Marx: “Building a Mobile-Browser-Friendly List of PDC 2010 Sessions with Windows Azure and OData”

Steve Marx (@smarx) described Building a Mobile-Browser-Friendly List of PDC 2010 Sessions with Windows Azure and OData in this 10/26/2010 post:

image[9] I learned today that there’s an OData feed of all the PDC 2010 sessions. I couldn’t help but build a Windows Azure application that consumes that feed and provides a simple web page that works well on mobile browsers. You can use it at http://pdc10sessions.cloudapp.net.

image

I’m enjoying the ease of use of OData in .NET. OData is the protocol that Windows Azure tables uses, and I’m also starting to use that to expose data in other applications I write. To share the joy, I thought I’d share how I built this app.

imageAll I did was add a service reference to http://odata.microsoftpdc.com/ODataSchedule.svc and write a simple controller method.

C# source code excised for brevity.

I’ll be using this at PDC this Thursday and Friday to find the sessions I’m interested in. If you’ll be attending PDC in person, I hope you find this useful too.

Steve’s app isn’t likely to win any design awards, but it’s quick. Here’s the opening screen in the VS2010’s WP7 emulator:

image[14] 

For more background about PDC2010’s OData feed, see The Professional Developers Conference 2010 team delivered on 10/26/2010 a complete OData feed of PDC10’s schedule at http://odata.microsoftpdc.com/ODataSchedule.svc/ article in the OData section of my Windows Azure and Cloud Computing Posts for 10/25/2010+ post.

See the mobile version of my manually created PDC 2010 session list, which also has minimal production values, at Windows Azure, SQL Azure, AppFabric and OData Sessions at PDC 2010:

OakLeafMobilePDC2010Sessions379px[6]

Monday, October 18, 2010

Enabling Fiddler2 to Monitor Windows Phone 7 Emulator Traffic

Brian Hitney’s  Windows Phone Emulator and Fiddler post of 10/17/2010 describes how to enable the current version of Fiddler2 to monitor HTTP request and response messages from the Windows Phone 7 Emulator RTW version:

On an internal alias, Eric Lawrence chimed in on setting up Fiddler for the Windows Phone 7 emulator.  This is really useful, of course, for monitoring traffic to/from the emulator … since so many apps are use data services, this is a must have feature.

The first step is to set the local machine as a proxy … in the IE LAN settings (or via the control panel) like so:

image

In the Fiddler options, configure the Fiddler listen port and allow Fiddler to accept remote connections:

image

In my app (SqueakBox), I display a user guide as a web page.  I made this choice to facilitate changes (much easier to publish a new HTML page!) … if I open that page up in the emulator:

image

I can see the traffic in Fiddler:

image

Success!  In my next post, I’m going to discuss two snags I ran into with the Microsoft Ad Control – one of which I discovered while using Fiddler.