Magento Themes and Magento Extensions

Magento: Parsing Schema: can’t import schema from


I had developed script to connect to Magento server to pull some products by sending values to filter. All of a sudden, last Tuesday it stopped working. I had implemented the searching products from Magento via AJAX so the client was not able to see the error messages to. It seemed it very strange for me too.

Later when I try to connect to the Magento server from outside that AJAX script, then I found the following fatal error message:

Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing Schema: can’t import schema from ’’

Magento normally contains the line following line in its WSDL:

  1. <import namespace=”” schemalocation=””>
  2. </import>

And PHP SOAP was not being able to parse it and hence it gave the above error message.

I searched a lot but could not find the solid solution in Magento forum too. So I just opened the WSDL file located at /app/code/core/Mage/Api/etc/wsdl.xml and commented the line:

  1. <!–
  2. <import namespace=”” schemaLocation=”” />
  3. –>

And tried as follows:

  1. error_reporting(E_ALL & ~E_NOTICE);
  2. ini_set(‘display_errors’, 1);
  3. $proxy      = new SoapClient(‘’);
  4. $sessionId  = $proxy->login(‘****’, ’****’);

Now it worked without any error message. Hope it helps you too!

Leave a Reply

You must be logged in to post a comment.