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!
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 (