Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

How to connect to the Web Services API with ODOO Online version

By
Cyril Guegan
on 10/21/16, 11:02 AM 193 views

Hi,

I started to use ODOO Online version (in trial mode) and I would like to use the API with XMLRPC but I can't connect to it.

I use a xmlrpc client with Node.js

var clientOptions = { host: this.url , port: this.port , path: '/xmlrpc/2/common' }

var client = xmlrpc.createClient(clientOptions);
var params = [];
params.push(this.db);
params.push(this.username);
params.push(this.password);
params.push('');
client.methodCall('authenticate', params, function(error, value) {
     if(error){

        return callback(error, null);
    }

    uid = value;
    return callback(null);
});

I tried port 8069 but I got a ECONNREFUSED

I tried ports 80 and 443 but it return HTML

I followed the instruction (http://www.odoo.com/documentation/9.0/api_integration.html) and changed my user password.


Thanks

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 10/21/16, 11:02 AM
Seen: 193 times
Last updated: 10/21/16, 11:07 AM