介绍几个免费的webservice,或许大家用得着

WebService论坛

天气预报:http://www.wopos.com/webservice/weather.asmx
介绍:
使用 getWeather(city)方法:city-直接输入全国大中小城市及国外中城市中文名
例:

手机归属地: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地址从字符串到整型的互相转换.

在网页中直接显示来访问者IP地址及所在地的代码:
<script language="javascript" src="http://www.wopos.com/prg/showip.aspx"></script>
把以上代码放到BODY中合适的位置即可. 
成语典故: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。
例:
<script type="text/javascript"> var tixa_nadInIframe=false; &lt;!-- iframe flag --&gt; var tixa_nadRowCount=4; &lt;!--the row count of narrowad--&gt; var tixa_nadColumnCount=1; &lt;!--the column count of narrowad--&gt; var tixa_nadHeight=280; &lt;!--total height of narrowad--&gt; var tixa_nadWidth=175; &lt;!--total width of narrowad--&gt; var tixa_nadBorderColor='CAE6FF'; &lt;!--the color of the narrowad's border--&gt; var tixa_nadBgColor='FFFFFF'; &lt;!--the color of the narrowad's background--&gt; var tixa_nadTitleColor='0000ff'; &lt;!--the color of the ad's title--&gt; var tixa_nadDescColor='000000'; &lt;!--the color of the ad's description--&gt; var tixa_adType='text'; &lt;!--narrowad type--&gt; </script><script src="http://union.narrowad.com/proxy/narrowad.jsp?wid=9575&cid=19087" type="text/javascript"> </script> <script type="text/javascript"> var tixa_wadRowCount=4; &lt;!--the row count of widead--&gt; var tixa_wadColumnCount=1; &lt;!--the column count of widead--&gt; var tixa_wadHeight=280; &lt;!--total height of widead--&gt; var tixa_wadWidth=175; &lt;!--total width of widead--&gt; var tixa_wadBorderColor='000000'; &lt;!--the color of the widead's border--&gt; var tixa_wadBgColor='FFFFFF'; &lt;!--the color of the widead's background--&gt; var tixa_wadTitleColor='0000ff'; &lt;!--the color of the ad's title--&gt; var tixa_wadDescColor='034500'; &lt;!--the color of the ad's description--&gt; var tixa_adType='text'; &lt;!--widead type--&gt; </script><script src="http://union.narrowad.com/proxy/widead.jsp?wid=9575&cid=19087" type="text/javascript"> </script>
  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 4
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值