Magento REST API 错误:无效的 xml
·
问题:Magento REST API 错误:无效的 xml
看起来我的问题与这个问题相同:Magento Rest Api Invalid XML但仍未得到解答。
我刚刚在本地主机上安装了带有示例数据的 magento 1.9,并尝试测试 REST API。我在管理面板中将 REST 角色和 REST 属性设置为 ALL。但是当我尝试在浏览器中输入以下 URL 时:http://magentohost/api/rest/products?limitu003d2
我收到回复:
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<script/>
<SOAP-ENV:Body>
<SOAP-ENV:Fault>
<faultcode>Sender</faultcode>
<faultstring>Invalid XML</faultstring>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
错误_log 为空,
访问\日志:
GET /magentohost/api/rest/products?limit=2 HTTP/1.1" 500
看起来我错过了设置中的某些内容.. 感谢您的帮助!
解答
您将需要编辑您的 .htaccess 文件。在 .htaccess 的第 12 行取消注释“Options -Multiviews”行。
更多推荐
所有评论(0)