java中小弟我要怎么用网上发布出来的免费接口

java中我要如何用网上发布出来的免费接口!
if (stationID == null || stationID.equals("")) {
我想在这里调用一个在网上找到的手机号归属地的接口,
http://life.tenpay.com/cgi-bin/mobile/MobileQueryAttribution.cgi?chgmobile=13975002688
这是接口,我想截取接口中的市级字段来判断。、
求指导!希望各位大神能在今天给小弟一个答案。急啊
}
------解决方案--------------------
webservice
------解决方案--------------------
自己解析然后。

String s="http://life.tenpay.com/cgi-bin/mobile/MobileQueryAttribution.cgi?chgmobile=13975002688";
 URL url = new URL(s);
 HttpURLConnection http = (HttpURLConnection) url.openConnection();

 http.setRequestMethod("GET");
 http.setRequestProperty("Accept-Charset", "GBK");
 http.connect();


 BufferedReader reader = new BufferedReader(new InputStreamReader(http
 .getInputStream(),"GBK"));
 String line;
 StringBuffer buffer = new StringBuffer();
 while ((line = reader.readLine()) != null) {
 buffer.append(line);
 }
 reader.close();
 http.disconnect();
 System.out.println(buffer.toString());

//<?xml version="1.0" encoding="gb2312" ?><root><ENV_CgiName>/cgi-bin/mobile/MobileQueryAttribution.cgi</ENV_CgiName><ENV_ClientAgent>Java/1.6.0_31</ENV_ClientAgent><ENV_ClientIp>114.141.130.116</ENV_ClientIp><ENV_QueryString>chgmobile=13975002688</ENV_QueryString><ENV_RequestMethod>GET</ENV_RequestMethod><ENV_referer></ENV_referer><chgmobile>13975002688</chgmobile><city>岳阳 </city><province>湖南 </province><retcode>0</retcode><retmsg>OK</retmsg><supplier>移动 </supplier><tid></tid></root>



------解决方案--------------------
这是webservice,返回了xml,解析xml就可以获取province,city等字段了。