Simple demo.py file for accessing data from server using xml rpc.
import xmlrpclib
import base64
import csv
server = '127.0.0.1' (server IP address)
port = '8080' (server port Number)
username = 'username'
password = 'pwd'
dbname = 'test61' (Database Name from which you access the data)
url = 'http://' + server + ':' + port
common = xmlrpclib.ServerProxy(url + '/xmlrpc/common')
uid = common.login(dbname, username, password)
object = xmlrpclib.ServerProxy(url + '/xmlrpc/object')
so_ids = object.execute(dbname, uid, password, 'sale.order','search',[])
print "sale order ids ::::::::",so_ids
import xmlrpclib
import base64
import csv
server = '127.0.0.1' (server IP address)
port = '8080' (server port Number)
username = 'username'
password = 'pwd'
dbname = 'test61' (Database Name from which you access the data)
url = 'http://' + server + ':' + port
common = xmlrpclib.ServerProxy(url + '/xmlrpc/common')
uid = common.login(dbname, username, password)
object = xmlrpclib.ServerProxy(url + '/xmlrpc/object')
so_ids = object.execute(dbname, uid, password, 'sale.order','search',[])
print "sale order ids ::::::::",so_ids