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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.