I want to consume a simple SOAP request from this Webservice:
http://www.webservicex.net/geoipservice.asmx
System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.NullReferenceException: Object reference not set to an instance of an object. at WebserviceX.Service.Adapter.IPAdapter.CheckIP(String IP) at WebserviceX.Service.GeoIPService.GetGeoIP(String IPAddress)
This is the Exception I get from the Webservice and this is my code:
$wsdl = 'http://www.webservicex.net/geoipservice.asmx?WSDL';
$soap = new SoapClient($wsdl);
$functions = $soap->__getFunctions();
$types = $soap->__getTypes();
$parameters = array("IPAddress"=> "exampleIPAddress");
$response = $soap->GetGeoIP($parameters);
with a real ip-address instead of "exampleIPAddress", of course.
Thanks