I am trying to write a code to consume a web service found at: http://www.webservicex.net/ws/WSDetails.aspx?CATID=12&WSID=64
I've used Axis2's WSDL2Java.bat tool and had two Java files generated:
- GeoIPServiceStub.java
- GeoIPServiceCallbackHandler.java
I've imported these, as well as the axis 'lib' folder into my project.
This is the code I'm using:
GeoIPServiceStub stub = new GeoIPServiceStub();
GetGeoIP geoIP = new GetGeoIP();
geoIP.setIPAddress("X.X.X.X");
GetGeoIPResponse reponse = stub.getGeoIP(geoIP);
When I try running it, it throws an InstantiationError.
Many thanks in advance!