Answer a question

looks like my question is the same as this one: Magento Rest Api Invalid XML but it is not still answered..

I just installed magento 1.9 with sample data on my localhost and trying to test REST API. I setted REST roles and REST attributes to ALL in admin panel. But when I trying to enter in browser the following URL: http://magentohost/api/rest/products?limit=2

I receive the response:

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

error_log is empty,

access_log:

GET /magentohost/api/rest/products?limit=2 HTTP/1.1" 500

Looks like I missed something in settings.. Thanks for any help!

Answers

You will need to edit your .htaccess file. On line 12 of .htaccess uncomment the line "Options -Multiviews".

Logo

更多推荐