Web Service
需要考虑的一些问题
l Web service URL
Ø 设备不能解析 “localhost”
Ø 使用机器名或者 IP 地址
l 传输数据集
Ø 效率低
Ø 序列化成字符串
§WriteXML / ReadXML

| When creating and testing your Web services you should be aware of a couple of issues. First, avoid using “localhost” in your Web service URLs. When running on the device, “localhost” refers to the device, not your workstation, so your application will fail when trying to call the service. Instead, use your workstation’s name or IP address during testing and set up some configuration system to use a production URL.
| Also, although Smart Devices support the serialization of DataSets, this process is very inefficient. Instead, consider having your Web service serialize the DataSet to a string and manually parse the string on the client side.