Hi All,

I am trying to implement the webservicex geoip api in java.

The following is my code.

wsdl url:http://www.webservicex.net/geoipservice.asmx?WSDL

package net.webservicex.www;

import java.rmi.RemoteException;

import javax.xml.rpc.ServiceException;

import net.webservicex.www.GeoIPServiceLocator;
import net.webservicex.www.GeoIPServiceSoap;
import net.webservicex.www.GeoIP;

public class Iplocationfinder {
private static GeoIP geoip;
public static void main(String[] args) throws ServiceException {
// TODO Auto-generated method stub
GeoIPServiceLocator goipslc=new GeoIPServiceLocator();

GeoIPServiceSoap goipsoap=goipslc.getGeoIPServiceSoap();

String IPADDRESS="106.51.233.140";

try {
geoip = goipsoap.getGeoIP(IPADDRESS);
} catch (RemoteException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}

System.out.println(geoip.getCountryName().toString ());


}

}


I am getting a null pointer exceptions.

Please help me out guys.