Engine23

Magento - SOAP Fatal Error unable to connect

Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://dev.magento19.com/index.php/api/soap/index/?wsdl=1' : Extra content at the end of the document in /Users/engine23/Sites/local.magento18.com/test.php:5 Stack trace: #0 /Users/engine23/Sites/local.magento18.com/test.php(5): SoapClient->__call('login', Array) #1 /Users/engine23/Sites/local.magento18.com/test.php(5): SoapClient->login('rjalbin', 'peanut') #2 {main} thrown in /Users/engine23/Sites/local.magento18.com/test.php on line 5

So, basically it boils down to bad URL in the request.


	login('rjalbin', 'peanut');

// View all customers
var_dump($proxy->call($sessionId, 'customer.list', array('filters', '*')));
?>

The right URL is:


	login('rjalbin', 'peanut');

// View all customers
var_dump($proxy->call($sessionId, 'customer.list', array('filters', '*')));
?>

Share: