O'Reilly logo

Windows Phone 8 Development Internals by Andrew Whitechapel and Sean McKenna

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 8. Web services and the cloud

Many of the standard techniques for connecting to web services, including Windows Communication Foundation (WCF) data services, are directly supported on the phone. This chapter examines each of these techniques, some particular issues with testing an end-to-end web service–based mobile app, and some of the choices you have in transferring data over the network. We also look at the additional support for connecting to Microsoft Windows Azure.

Web services

Windows Phone can consume web services, including Microsoft ASP.NET and WCF. The following example uses a simple WCF service that provides a “quote of the day.” The ServiceContract is listed in the code that follows shortly. It defines just one method, GetQotd ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required