eclipse - Cannot initiate the type GeoIPService in Java -


new soap. using eclipse mars jdk 1.8 under windows vista.

i using http://www.webservicex.net/ws/wsdetails.aspx?catid=12&wsid=64

i following error: cannot initiate type geoipservice. idea why?

import java.rmi.remoteexception; import javax.xml.rpc.serviceexception; import net.webservicex.www.geoip; import net.webservicex.www.geoipservice; import net.webservicex.www.geoipservicesoap;  public class iplocationfinder { public static void main(string[] args) throws serviceexception, remoteexception {     if (args.length != 1) {         system.out.println("you need pass in 1 ip address");     }     else     {         string ipaddress = args[0];          geoipservice geoipservice = new geoipservice(); //<== cannot initiate type geoipservice         geoipservicesoap geoipservicesoap = geoipservice.getgeoipservicesoap();         geoip geoip = geoipservicesoap.getgeoip(ipaddress);         system.out.println( geoip.getcountryname() );     } }} 


Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -