检测QQ号码是否存在
2013-01-15 09:48
127 查看
腾讯QQ在线状态 WEB 服务
Endpoint:http://www.webxml.com.cn/webservices/qqOnlineWebService.asmx
Disco:http://www.webxml.com.cn/webservices/qqOnlineWebService.asmx?disco
WSDL:http://www.webxml.com.cn/webservices/qqOnlineWebService.asmx?wsdl
![](http://www.webxml.com.cn/pro_images/9dc0b108-c112-4dc1-bb4e-59695fa3be1a.gif)
通过输入QQ号码(String)检测QQ在线状态。返回数据(String)Y = 在线;N = 离线 ;E = QQ号码错误......
欢迎技术交流。 QQ:138986722
Email 电子邮件地址验证 WEB 服务
Endpoint:http://www.webxml.com.cn/WebServices/ValidateEmailWebService.asmx
Disco:http://www.webxml.com.cn/WebServices/ValidateEmailWebService.asmx?disco
WSDL:http://www.webxml.com.cn/WebServices/ValidateEmailWebService.asmx?wsdl
![](http://www.webxml.com.cn/pro_images/bea8b79b-9514-438b-b112-1fd988660fb2.gif)
Email 电子邮件地址验证 Web Service,通过查找给定的电子邮件域的邮件服务器和通过向邮件服务器发送数据来判断电子邮件地址正确与否。此Email地址验证Web Service请不要用于任何商业目的
java后台访问测试:
Endpoint:http://www.webxml.com.cn/webservices/qqOnlineWebService.asmx
Disco:http://www.webxml.com.cn/webservices/qqOnlineWebService.asmx?disco
WSDL:http://www.webxml.com.cn/webservices/qqOnlineWebService.asmx?wsdl
![](http://www.webxml.com.cn/pro_images/9dc0b108-c112-4dc1-bb4e-59695fa3be1a.gif)
通过输入QQ号码(String)检测QQ在线状态。返回数据(String)Y = 在线;N = 离线 ;E = QQ号码错误......
欢迎技术交流。 QQ:138986722
Email 电子邮件地址验证 WEB 服务
Endpoint:http://www.webxml.com.cn/WebServices/ValidateEmailWebService.asmx
Disco:http://www.webxml.com.cn/WebServices/ValidateEmailWebService.asmx?disco
WSDL:http://www.webxml.com.cn/WebServices/ValidateEmailWebService.asmx?wsdl
![](http://www.webxml.com.cn/pro_images/bea8b79b-9514-438b-b112-1fd988660fb2.gif)
Email 电子邮件地址验证 Web Service,通过查找给定的电子邮件域的邮件服务器和通过向邮件服务器发送数据来判断电子邮件地址正确与否。此Email地址验证Web Service请不要用于任何商业目的
java后台访问测试:
public static void main(String[] args) { while (true) { System.out.println("请输入要查询的QQ号码、输入“0”退出"); java.util.Scanner in=new java.util.Scanner(System.in); String qq = in.next(); if(qq.equals("0")){ break; } String result = ""; String charset = "UTF-8"; String callurl = "http://www.webxml.com.cn/webservices/qqOnlineWebService.asmx/qqCheckOnline?qqCode="; try { /* * 通过输入QQ号码(String)检测QQ在线状态。 返回数据(String)Y = 在线;N = 离线 ;E = * QQ号码错误 */ java.net.URL url = new java.net.URL(callurl + qq); java.net.URLConnection connection = url.openConnection(); connection.connect(); java.io.BufferedReader reader = new java.io.BufferedReader( new java.io.InputStreamReader(connection .getInputStream(), charset)); String line; /* * 返回的格式 <?xml version="1.0" encoding="utf-8"?> <string * xmlns="http://WebXml.com.cn/">E</string> */ while ((line = reader.readLine()) != null) { result += line; result += "\n"; } } catch (Exception e) { e.printStackTrace(); } int len = result.indexOf("\">"); if (len != -1) { String qStruts = result.substring(len + 2, len + 3); if (qStruts.equals("E")) { System.out.println("QQ号码错误"); } else if (qStruts.equals("Y")) { System.out.println("在线"); } else if (qStruts.equals("N")) { System.out.println("离线"); } } else { System.out.println("服务器繁忙、请从试!"); } } }
相关文章推荐
- 检测QQ号码是否存在
- 用程序判断一个QQ号码是否在线、是否存在(delphi调用webService)
- 用程序判断一个QQ号码是否在线、是否存在(delphi调用webService)
- 利用ajax检测用户名是否存在
- android 检测sqlite数据表和表中字段(列)是否存在 (转)
- iOS通讯录操作封装(添加联系人、检查号码是否存在)
- 检测单链表中是否存在环
- iPhone检测是否存在耳麦
- Android 检测目录是否存在,不存在则创建
- php检测mysql表是否存在的方法小结
- java校验QQ号码是否符合要求
- Linq 检测DbDataReader 对象中是否有特定名字的列存在
- php循环检测目录是否存在并创建
- PHP中如何检测一个值为null的变量是否存在
- 跨浏览器检测flash是否存在
- 【C#学习笔记】检测进程是否存在并关闭
- 在每个页面中检测会话是否存在的解决方案
- 检测手机号码是否全为0-9的数字
- Python之检测XML文件中URL是否存在
- powershell,检测service是否存在,并删除