Ciao a tutti,
devo interfacciarmi con questo webservice:

http://www.ecubicle.net/iptocountry.asmx?wsdl

Questo non dovrebbe fare altro che ridarmi delle informazioni sull'indirizzo ip che gli ho passato:

Usage Notes

FindCountryAsString(v4IPAddress As String)
return type: String


FindCountryAsXml(v4IPAddress as string)
return type: XML

Make sure that the input IP address is correct. The service checks
for invalid IP addresses by matching each octet. Each octet must be
between 0 - 255 inclusive. Incorrect IP addresses yield results with
Country node explaining the error message.

Ho provato a fare una paginetta PHP con due righe molto banali per provare visto che è la prima volta che mi affaccio sui webservice:

<?php
try
{
$ip="87.12.160.71";
$client = new SoapClient("http://www.ecubicle.net/iptocountry.asmx?wsdl");
$param = array('V4IPAddress' => $ip);
echo $param['V4IPAddress'];
echo $client->__soapCall('FindCountryAsString',$param);
} catch (SoapFault $exception) {
echo "Eccezione

";
echo $exception;
}

?>

Però mi va in errore...dove sbaglio?

Sotto riporto l'errore che esce. mi aiutate.grazie mille a tutti

SoapFault exception: [soap:Server] System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.ArgumentNullException: Value cannot be null. Parameter name: input at System.Text.RegularExpressions.Regex.Match(String input) at System.Text.RegularExpressions.Regex.Match(String input, String pattern) at iptocountry.CheckInput(String IPv4) at iptocountry.FindCountryAsString(String V4IPAddress) --- End of inner exception stack trace --- in C:\EasyPHP-5.3.3\www\index.php:14 Stack trace: #0 C:\EasyPHP-5.3.3\www\index.php(14): SoapClient->__soapCall('FindCountryAsSt...', Array) #1 {main}