本站 WEB 服务支持以下协议:HttpSoap、HttpPost、HttpGet、Documentation、HttpPostLocalhost 下面用天气预报 Web 服务和股票行情数据 WEB 服务来说明GET调用方法,你可以使用http://www.webxml.com.cn/WebServices/WeatherWebService.asmx/getWeatherbyCityName?theCityName=城市代码(如果使用城市名称请对中文名称使用URL编码:.NET 使用 System.Web.HttpUtility.UrlEncode("广州", System.Text.Encoding.UTF8) 来进行URL编码)GET 方法访问天气预报Web Service
广州天气预报: http://www.webxml.com.cn/WebServices/WeatherWebService.asmx/getWeatherbyCityName?theCityName=%e5%b9%bf%e5%b7%9e
上海天气预报: http://www.webxml.com.cn/WebServices/WeatherWebService.asmx/getWeatherbyCityName?theCityName=58367
天津天气预报: http://www.webxml.com.cn/WebServices/WeatherWebService.asmx/getWeatherbyCityName?theCityName=54517
成都天气预报: http://www.webxml.com.cn/WebServices/WeatherWebService.asmx/getWeatherbyCityName?theCityName=56294
城市代码也能在WeatherWebService的页面上直接获取
用http://www.webxml.com.cn/WebServices/ChinaStockWebService.asmx/getStockInfoByCode?theStockCode=股票代码 GET方法调用股票行情数据 WEB 服务,以下演示:
sh600433 冠豪高新 股票行情: http://www.webxml.com.cn/WebServices/ChinaStockWebService.asmx/getStockInfoByCode?theStockCode=sh600433
sh000001 上证指数: http://www.webxml.com.cn/WebServices/ChinaStockWebService.asmx/getStockInfoByCode?theStockCode=sh000001
sz000002 万科A 股票行情: http://www.webxml.com.cn/WebServices/ChinaStockWebService.asmx/getStockInfoByCode?theStockCode=sz000002
sz000002 深振业A 股票行情: http://www.webxml.com.cn/WebServices/ChinaStockWebService.asmx/getStockInfoByCode?theStockCode=sz000006
.
|