enter code here
package org.ameen.syed;
import net.webservicex.GeoIP;
import net.webservicex.GeoIPService;
import net.webservicex.GeoIPServiceSoap;
public class Iplocation {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
if(args.length !=1){
System.out.println("u need to pass ipaddress ");
}
else{
String ipAddress = args[0];
GeoIPService ipservice = new GeoIPService();
GeoIPServiceSoap geoIPServiceSoap = ipservice.getGeoIPServiceSoap();
GeoIP geoip = geoIPServiceSoap.getGeoIP(ipAddress);
System.out.println(geoip.getCountryName());
}
}
}
我不知道是什么问题..我是webservice编程的新手..请帮忙看看是什么错误..
谢谢你 ..