2008.04.10 21:26 bruce:
想搞没时间搞,先记下来。
现在的web服务都开放很多api,也不算什么webservice,但确实很好用,开放性不错
jiwai和gmail都提供了相应的web 调用API,实现原理和调用方法都类似。
gmail的API挺复杂,用这个web的新邮件rss种子:https://mail.google.com/mail/feed/atom 调用则方便很多。
jiwai也有是这样,见上一篇 http://bruce.in/p/482
https://groups.google.com/group/jiwai-development-talk/web/jiwai-deapi
使用HTTP Basic Authentication认证协议 做用户验证 ,然后用get post的方式与服务器交互,返回xml结果集。
WebClient webClient = new WebClient();
webClient.Headers.Add(”Content-Type”, “application/x-www-form-urlencoded”);
NetworkCredential nc = new NetworkCredential(”your id”, “your password”);
webClient.Credentials = nc;
