天氣預報
地址:http://www.wopos.com/webservice/weather.asmx
介紹:使用 getWeather(city)方法:city-直接輸入全國大中小城市及國外中城市中文名
例:
Public sub GetWopWeather(ByVal city As String)
Dim s As String
Try
Dim weat As New localhost.Weather
s = weat.getWeather(city)
If s.IndexOf("沒有查到相關結果") > -1 Then
Else
s = s.Replace("圖1==", "<img src=")
s = s.Replace(",圖2==", "></img><img src=")
s = s.Replace(",天氣", "></img>,天氣")
s = s.Replace(",", "<br/>").Replace("==", ":")
End If
Catch ex As Exception
s = "提供天氣數據的網絡不通,請稍後再試"
End Try
response.write(s)
End sub
手機歸屬地
地址:http://www.wopos.com/webservice/Mobile.asmx
介紹:使用 getMobileArea(mobileCode) mobileCode-手機號碼或前7位
股票走勢圖
地址:http://www.wopos.com/webservice/Stock.asmx
介紹:使用 getStockChart(StockCode) StockCode-股票代碼,返回值爲圖片的HTTP地址.
IP地址查詢
地址:http://www.wopos.com/webservice/ips.asmx
介紹:使用 getIParea(ip)方法返回IP所在地,使用AddIPRange(startIP,EndIP,AreaInfo)增加新的IP地址信息,使用 IpToInt 和 IntToIp可對IP地址從字符串到整型的互相轉換.
成語典故
地址:http://www.wopos.com/webservice/chengyu.asmx
介紹:
使用 ChengYuDianGu(chengyu)方法,參數爲成語或成語的拼音縮寫。如返回多個成語以*_*分隔
生成驗證碼圖像
地址:http://www.wopos.com/webservice/vimg.asmx
介紹:使用 GetVerifyImg(str4,Lenght,Width,Style)生成一張字符圖像,用於註冊、發貼等場合做圖像驗證。後面三個參數爲保留參數,暫時無效,用於以後擴充。 目前的很簡單,僅供測試。
RSS種子生成
地址:http://www.wopos.com/webservice/Rss.asmx
介紹:使用 OutPutRss()方法:Rss Item數據項以DataTable 方式提供。數據項數不能超過100調用後直接輸出RSS2.0 XML。