当我转到url/api (其中url是我的Magento的url )时,我得到这样的响应:
<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>
正确的回答应该是:
<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>
怎么回事?
发布于 2013-03-11 04:49:52
我来晚了,但希望我的回复对以后的人有用。
我也有同样的问题。我安装了Zend Server (PHP 5.3.9),得到了同样的错误。我搜索了很多次,应用了所有可用的解决方案,但都失败了……最后,我安装了wamp,然后在那里运行“Soap客户端”脚本,它成功地运行了。
然后我发现Zend Server (PHP 5.3.9)在“Soap客户端”脚本中有一些默认的bug。我卸载了Zend Server (PHP 5.3.9),安装了Zend Server (PHP 5.4.11),并在那里运行了“Soap客户端”脚本。这一次它成功运行了。
结论:请使用最新的PHP版本(Zend Server)或(Wamp Server),因为在一些PHP版本中存在默认的“Soap客户端”错误,这是我上面提到的一个。
谢谢,卡西夫
发布于 2012-10-11 20:10:41
答案是:它来自PHP的一个bug。floriancarstens在这里发表了一篇文章:Magento Forum
https://stackoverflow.com/questions/12538343
复制相似问题