Web Service
支持的 API
l WebRequest / WebResponse
Ø 请求任何 HTTP 资源时使用
l SoapMessage / SoapHeader
Ø 手工创建和使用 SOAP 消息
l Proxy Wizard
Ø 生成 SOAP 代理类
Ø 需要 WSDL 文档

| The Compact Framework provides a number of ways to communicate over the Internet. You can use the WebRequest and WebResponse classes to make an HTTP request to any Internet resource. In this case, you are completely responsible for creating the body of the request message and parsing the response.
| The System.Web.Services.Protocols namespace contains many SOAP-related classes that can be used to generate SOAP requests and responses. These are useful if you have knowledge of SOAP messages.
| However, the easiest way to write the code for calling a Web Service is to have Visual Studio do it for you. Smart Device projects support the same Web Service proxy creation wizard as desktop projects. You can use the wizard to generate all the HTTP and SOAP-related code and encapsulate it in an easy-to-use class. The only requirement is that you have a Web Service Description Language document available for the service you want to call.