I am building a mobile webapp and need to pull and push data to OpenERP V7.
If I understood the only way to communicate with OpenERP is XML-RPC or JSON-RPC.
Questions: 1/ I found document with XMLRPC but not for JSON. Any idea where I can get it ? 2/ Testing XMLRPC with Javascript and jquery.xmlrpc.js
I wrote :
$.xmlrpc({
url: 'http://mySErverName:8069/xmlrpc/common',
methodName: 'login',
params: ['myDb', 'admin', 'password'],
success: function(response, status, jqXHR) { alert('OK')},
error: function(jqXHR, status, error) { alert('Error : ' + error.debug ) }
});
But when executing, function error is executed but error has no value inside. So I don't what's wrong.
What is the best way to use xmlrpc with Javascript ? What is wrong with the code I posted ?
Regards, St.