我使用wsimport创建程序调用web服务GeoIpService来了解ip位置。但它看起来像用java编写的本地类方法调用程序。因为wsimport提供了类使用。 我打电话给主要方法
String ipAddress = "17.21.55.143";
GeoIPService geoIPService = new GeoIPService();
GeoIPServiceSoap geoIPServiceSoap = geoIPService.getGeoIPServiceSoap();
GeoIP geoIP = geoIPServiceSoap.getGeoIP(ipAddress);
System.out.println(geoIP.getCountryName());
使用这个网络服务我必须知道很多事情,
1-生成的类将给出ip位置信息。
2-我必须通过预定义的进程来获取IP地址 创建一个GeoIPService实例,通过调用getGeoIPServiceSoap()方法创建GeoIPServiceSoap实例等等..................
我是学习网络服务的新手,所以我对此有很多疑问
感谢的。