O'Reilly logo

Windows Phone 8 Game Development by Marcin Jamro

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

Web service usage

In the previous part of this chapter, you created, implemented, and locally deployed the web service. Now, you will learn how to consume it from your game and add the missing implementation to the Ranks, Map, World, and Game screens.

Thus, let's return to Microsoft Visual Studio Express 2012 for Windows Phone and make necessary modifications in the game!

Adding reference

The first step consists of adding a reference to the web service in the SpaceAim3D project (not SpaceAim3D.WebService). To do this, choose the Add Service Reference option from the context menu of the References directory in the Solution Explorer.

As shown in the following screenshot, in the Add Service Reference window, you should type an address (http://192.168.0.2:1217/SA3DService.svc ...

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