Creating a Simple XML Web Service

Before a .NET Compact Framework XML Web service client can be created, there must exist an XML Web Service that the client can consume. In this chapter a simple Web service is created, and a .NET Compact Framework client is created to consume it. This XML Web service returns a famous quote, the name of the person who first spoke or wrote the quote, and the years during which the person lived.

The quotes will be stored in a Microsoft SQL Server database. When a request for a quote is made, the XML Web service will query for a random quote and return that quote to the client. You will need to set up this database before you can run this sample. See the Readme.txt file in the media for this chapter for instructions ...

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.