I have a Magento server that has various methods open via API. I am prototyping various client modules to call this API. It has been successful so far.
I just started using curl to push xml. Surprisingly, I canβt get past the API entry. Here's what I do (the login method takes two lines, username and password).
curl --data-urlencode @xmlrpc http:
xmlrpc file contents
<?xml version="1.0"?> <methodCall> <methodName>login</methodName> <params> <param> <value>apiUser</value> </param> <param> <value>apiKey</value> </param> </params> </methodCall>
This is what I get:
<?xml version="1.0" encoding="UTF-8"?> <methodResponse> <fault> <value> <struct> <member> <name>faultCode</name> <value><int>631</int></value> </member> <member> <name>faultString</name> <value><string>Failed to parse request</string></value> </member> </struct> </value> </fault> </methodResponse>
What does this error mean?
Vish
source share