views:

6

answers:

0

I have a webpage that uses Google Maps API to show a location of a business. It was previously working fine, but recently I noticed that the page now has a SOAP error:

Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://geocoder.us/dist/eg/clients/GeoCoderPHP.wsdl' : failed to load external entity "http://geocoder.us/dist/eg/clients/GeoCoderPHP.wsdl" in /var/www/vhosts/labusinessconnect.com/httpdocs/directory/listing.class.php:

I am using the geocoder service through SOAP. Here is my code:

$location = $address1.", ".$zip; 
$wsdl = 'http://geocoder.us/dist/eg/clients/GeoCoderPHP.wsdl';  
$client = new SoapClient($wsdl);   //[FATAL ERROR HERE]
$result = $client->geocode($location); echo "D<BR/>";
$latitude = $result[0]->lat;
$longitude = $result[0]->long;

The page dies with a fatal error after I create a new instance of SoapClient.

At first I thought that maybe the URL was no lonfer valid, but when I paste it in I see the XML. Any ideas on what the issue is, and how I can resolve it? Thanks.