问题描述
我正在尝试通过 http://magentostore/api/rest 访问Magento Rest Api.但是我得到回应
Hi I am trying to access Magento Rest Api through http://magentostore/api/rest. But I am getting response
<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>
.
<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>
.
有人对此有任何想法吗?为什么我收到此错误
Does anybody have any idea regarding this. Why I am recieving this error
推荐答案
您将需要调整.htaccess文件.
You will need to adjust your .htaccess file.
第12行取消注释Options -Multiview
这会关闭Multiview,您的其余api应该可以正常工作.
This turns off Multiview and your rest api should work.
这篇关于Magento Rest Api无效的XML的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!