Creating a Client for the Simple XML Web Service

Now it is time to create a client for the QuotableQuotes XML Web service. Start out by creating a new Smart Device Application. Design the UI to match the UI in Figure 9.2. The code to call the XML Web service will be placed in the button-clicked handler on the button labeled Get Quote. First add a reference to the XML Web service into the Smart Device Application project.

Figure 9.2. The user interface for the QuotableQuotes client application.

Adding a Web Reference to a Client Application

Now, a Web reference to service needs to be added to the client project. To do this, go to the Solution Explorer, ...

Get Microsoft® .NET Compact Framework Kick Start now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.