摘要:
1、首先找一个提供天气预报webservice的URL,这里我们选择。http://www.webxml.com.cn/WebServices/WeatherWebService.asmx该URL提供了多个获取天气的方法。打开网站后我们可以看到有个getWeatherbyCityName方法,根据城市获取天气。2、输入我们想要获取的城市名:然后点击调用,页面返回给我们的是XML内容,内容如下:<ArrayOfString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http 阅读全文
posted @ 2013-01-22 03:08
B追风少年
阅读(21621)
评论(3)
推荐(3)

浙公网安备 33010602011771号