Magento API SOAP-ERROR:解析 WSDL:无法从 '[url]/index.php/api/index/index/?wsdl=1' 加载:找不到开始标签部分第 56 行的结尾 [英] Magento API SOAP-ERROR: Parsing WSDL: Couldn't load from '[url]/index.php/api/index/index/?wsdl=1' : Couldn't find end of Start Tag part line 56

查看:17
本文介绍了Magento API SOAP-ERROR:解析 WSDL:无法从 '[url]/index.php/api/index/index/?wsdl=1' 加载:找不到开始标签部分第 56 行的结尾的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我转到 [url]/api(其中 [url] 是我的 Magento 的 url)时,我得到以下响应:

When I go to [url]/api (where [url] is the url of my Magento), 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>

正确的回答应该是:

<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>

什么给了?

推荐答案

我迟到了,但希望我的回复对未来有用.

I'm late but hope my reply will be useful for someone in future.

我遇到了完全相同的问题.我已经安装了 Zend Server (PHP 5.3.9) 并且遇到了同样的错误.我搜索了很多并应用了所有可用的解决方案,但失败了......最后,我安装了 wamp,然后在那里运行Soap Client"脚本,它成功运行.

I had exactly the same problem. I had installed Zend Server (PHP 5.3.9) and was getting the same error. I searched a lot and applied all available solutions but fails.... Finally, i installed wamp and then run 'Soap Client' script over there and it runs successfully.

然后我发现 Zend Server (PHP 5.3.9) 在Soap Client"脚本中有一些默认错误.我卸载了 Zend Server (PHP 5.3.9) 并安装了 Zend Server (PHP 5.4.11) 并在那里运行Soap Client"脚本.这次运行成功了.

Then i reached on this point that Zend Server (PHP 5.3.9) has some default bug in 'Soap Client' Script. I uninstalled Zend Server (PHP 5.3.9) and installed Zend Server (PHP 5.4.11) and runs 'Soap Client' script over there. This time it runs successfully.

结论:请使用最新的 PHP 版本(Zend Server)或(Wamp Server),因为在某些 PHP 版本中存在默认的Soap Client"错误,我在上面提到过.

Conclusion: Please use latest PHP version (Zend Server) or (Wamp Server) as, there is default 'Soap Client' bug in some PHP versions, one i mentioned above.

谢谢,卡西夫

这篇关于Magento API SOAP-ERROR:解析 WSDL:无法从 '[url]/index.php/api/index/index/?wsdl=1' 加载:找不到开始标签部分第 56 行的结尾的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆