Web Service

Asked by Tsolmon Narantsogt

Hi all
i am trying to build xml rpc client for android. i am using android-xmlrpc library

My code :
rpcClient = new XMLRPCClient("http://10.0.2.2:8069/xmlrpc/object");
String partner_id = (String) rpcClient.call("create",DB_NAME, user_id,"res.partner",params).toString();

I got below errors.

Method not supported create
I/--------------------------- ERROR ON NEW PARTNER( 281): org.xmlrpc.android.XMLRPCFault: XMLRPC Fault: Traceback (most recent call last):
I/--------------------------- ERROR ON NEW PARTNER( 281): File "/home/tsolmon/workspace_python/MONOSERP_START/src/server/netsvc.py", line 401, in dispatch
I/--------------------------- ERROR ON NEW PARTNER( 281): result = ExportService.getService(service_name).dispatch(method, auth, params)
I/--------------------------- ERROR ON NEW PARTNER( 281): File "/home/tsolmon/workspace_python/MONOSERP_START/src/server/service/web_services.py", line 585, in dispatch
I/--------------------------- ERROR ON NEW PARTNER( 281): raise KeyError("Method not supported %s" % method)
I/--------------------------- ERROR ON NEW PARTNER( 281): KeyError: 'Method not supported create'
I/--------------------------- ERROR ON NEW PARTNER( 281): [code Method not supported create]

Thank you.
Tsolmon

Question information

Language:
English Edit question
Status:
Solved
For:
Odoo Server (MOVED TO GITHUB) Edit question
Assignee:
No assignee Edit question
Solved by:
Nhomar - Vauxoo
Solved:
Last query:
Last reply:
Revision history for this message
Best Nhomar - Vauxoo (nhomar) said :
#1

In al your code you can see that never are passing the Oerp Passwor for your user, can you check if you are connecting correctly, if the object connection is empty this error is commun when the connection is lost or never ir done,

 I Hope it can help you.

Revision history for this message
Tsolmon Narantsogt (tsolmon) said :
#2

Thanks Nhomar Hernández - http://openerp.netquatro.com, that solved my question.