Magento API SOAP-ERROR: WSDL parsing: Failed to load from [url] /index.php/api/index/index/?wsdl=1 ': Failed to find end of line with Start Tag 56

When I go to [url] / api (where [url] is my Magento url) I get this response:

<SOAP-ENV:Envelope>
<SOAP-ENV:Body>
<SOAP-ENV:Fault>
<faultcode>WSDL</faultcode>
<faultstring>SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://www.example.com/magento/1.7/index.php/api/index/index/?wsdl=1' : Couldn't find end of Start Tag part line 56
</faultstring>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

      

The correct answer should be:

<SOAP-ENV:Envelope>
<SOAP-ENV:Body>
<SOAP-ENV:Fault>
<faultcode>Sender</faultcode>
<faultstring>Invalid XML</faultstring>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

      

What gives?

+1


source to share


2 answers


I am running late, but hope my answer is helpful to someone in the future.

I had exactly the same problem. I installed Zend Server (PHP 5.3.9) and got the same error. I searched a lot and applied all the solutions available but couldn't. Finally, I installed wamp and then ran the "Soap Client" script and executed successfully.

Then I realized that Zend Server (PHP 5.3.9) has a default bug in the "Soap Client" Script. I uninstalled Zend Server (PHP 5.3.9) and installed Zend Server (PHP 5.4.11) and runs the "Soap Client" script there. This time it succeeds.



Conclusion: use the latest version of PHP (Zend Server) or (Wamp Server) as some versions of PHP have a default "Soap Client" error, so I mentioned above.

Thank you, Kashif

0


source


Answer: it comes from a PHP error. The truth is in a post from floriancarstens here: Magento Forum



-1


source







All Articles