开发者

Consume webservice in WP7

开发者 https://www.devze.com 2023-02-06 20:48 出处:网络
I am writing my first WP7 app, and the data I\'m trying to access is from a WebService. If I add a Service Reference, the actual methods return DataTables, which are not supported in WP7. Is there a w

I am writing my first WP7 app, and the data I'm trying to access is from a WebService. If I add a Service Reference, the actual methods return DataTables, which are not supported in WP7. Is there a way around this, or should I resort to a simple 开发者_运维百科WebClient request and parse the xml myself?

The xml result has a DataSet schema which is where the service reference is pulling the info from.


I think you can serialise the dataset to xml using System.Xml.Serialization.XmlSerializer in the service end and also deserialize in the phone.

0

精彩评论

暂无评论...
验证码 换一张
取 消