How to enable magento xml-rpc?

I am applying for an account at godatafeed.com and they say that my site does not support xml-rpc. I checked all the settings, but I can not find anything in this regard.

I checked several websites and they say to try to browse these urls "

http://www.theprinterdepo.com/index.php/api/xmlrpc/ http://www.theprinterdepo.com/index.php/api/?wsdl

the second one works, the first one shows nothing.

How to enable this service?

+4
source share
3 answers

The first, most likely, does not work, because someone (perhaps himself) applied the workaround fix to the xmlrpc security vulnerability.

More information about the vulnerability can be found here .

+6
source

Here are the steps I followed to get it working:

  • Install Magento 1.1 (minimum)

  • In the administrator, under System> Web Services, add one user, add one role (specify the access level for the role or select "All") and assign the user a role

  • Using the XML RPC client (good for Mac OS X: http://ditchnet.org/xmlrpc/ ), set the endpoint URL to http://yourstore/magento/api/xmlrpc/

  • First, call the login method with two parameters: the user and the key (you just created them in step 2.). See screenshot in app.

  • The request is as follows:

    <methodCall> <methodName> login
    </methodName> <params> <param> <value> <string> test
    </string> </value> </param> <param> <value> <string> 123456
    </string> </value> </param> </params> </methodCall>

  • The answer looks like this (it contains the session identifier):

    <methodResponse> <params> <param> <value> <string> a10915086ca235bcf71f66cfe70bd198
    </string> </value> </param> </params> </methodResponse>

  • Using the session id, you can now call any other method. For example, catalog_category.tree. Therefore, you always call the "call" method and pass 2 parameters: session identifier, method name (see. Screenshots in the attachment). You can pass other parameters depending on the target method.

enter image description hereenter image description hereenter image description here

See URL below: -

http://www.magentocommerce.com/boards/viewthread/11773/

+5
source

I played with this a while ago and ended up disconnecting it due to changing requirements, but ...

To answer the question about where it is located in the admin interface, go to System-> Web Services-> Users and add the user as a requirement to godatafeed.com, this will include the username, first name, last name, email address, key api, api key confirmation and whether this account is active.

You may also need to create a specific role for this user ... System-> Web Services-> Roles , this will allow the user to assign a role, specific permissions in subsystems from Magento as desired / necessary.

If you need more information, you can look at the magentocommerce forums, I found it when I implemented it earlier. The information is old, but updated and useful when going through the stream: http://www.magentocommerce.com/boards/viewthread/11773/

URLs that you entered correctly, but if the user does not exist, it will not give anything. Double check your forum URLs with information they have samples for testing the API.

From the comment below, an explanation of API v1 and v2 with php examples of both: http://www.magentocommerce.com/wiki/5_-_modules_and_development/0_-_module_development_in_magento/introduction

Although all the information provided is helpful, we were not able to solve the problem with the poster.

+3
source

All Articles