[Solved] Phonebook Demo Soap Error

When I try to log into the demo phonebook app, i get an http connection error. So, i tried to call the test action of the site controller and this was the output.


SOAP-ERROR: Parsing WSDL: Couldn't load from 'h t t p :: / / mymage.com/demos/phonebook/?r=site/phonebook' : Extra content at the end of the document

Error was in this file. /var/www/demos/phonebook/protected/controllers/SiteController.php(34)

This was code in red.


$client=new SoapClient($wsdlUrl);

Any ideas?

Fixed it. Stupid me. I had my domain name set in my windows box hosts file, but didn’t have it set it my linux web servers hosts file. So the linux server was trying to make a soap connection to the actual mymage.com domain. After setting the host file, all works fine now.