Package net.webservicex.geoip

Source Code of net.webservicex.geoip.GeoIPClientTest

// START SNIPPET: client
package net.webservicex.geoip;

import net.webservicex.GetGeoIP;
import net.webservicex.geoip.jaxb.GeoIPServiceClient;
import net.webservicex.geoip.jaxb.GeoIPServiceSoap;
import junit.framework.TestCase;

public class GeoIPClientTest extends TestCase
{
    public void testClient() throws Exception
    {
        GeoIPServiceClient service = new GeoIPServiceClient();
        GeoIPServiceSoap geoIPClient = service.getGeoIPServiceSoap();
       
        System.out.println("The country is: " +
                           geoIPClient.getGeoIP("216.73.126.120").getCountryName());
    }
}
// END SNIPPET: client
TOP

Related Classes of net.webservicex.geoip.GeoIPClientTest

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.