When calling upon the Magento SOAP API I get the well known
SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://{domain}/index.php/api/v2_soap/index/?wsdl=1' : failed to load external entity "http://{domain}/index.php/api/v2_soap/index/?wsdl=1"
however, loading the wsdl with file_get_contents
works, and even the following simple test (in a seperate file) works fine.
$server = new SoapServer('http://{domain}/index.php/api/v2_soap/index/?wsdl=1', array(
'encoding' => 'UTF-8',
'soap_version' => 2));
Then again, if i take the above and use in inside the Zend Soap Server class (where the server is created), it throws the same error.
Does anybody have any ideas what's going wrong here?