Сам спросил - сам ответил
<?php
echo '<form action="new6.php" method="post">
<input type="text" name="IPAddress" value=""><br><br>
<input type="submit" value="Submit">
</form>';
try
{
$soap_client = new SoapClient("http://www.webservicex.net/geoipservice.asmx?WSDL");
$vec = array("IPAddress"=>$_POST[IPAddress]);
//print_r($vec);
echo '<br><br>';
$quote = $soap_client->GetGeoIP($vec);
//print_r($quote);
echo '<br><br>';
//print_r($quote->GetGeoIPResult->CountryName);
$country = $quote->GetGeoIPResult->CountryName;
echo "Ваш IP " . $quote->GetGeoIPResult->IP . " соответствует стране: " . $country;
}
catch (SoapFault $exception)
{
echo $exception->getMessage();
}