Android的OpenERP的搜索请求XMLRPC [英] Android OpenErp Search Request XMLRPC

查看:140
本文介绍了Android的OpenERP的搜索请求XMLRPC的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我工作的一个Android应用程序,它能够与OpenERP的服务器连接和retrive的用户ID,也该用户的不同接触的各个领域。

I am working on an android application which is able to connect with an openerp server and retrive the userid and also the individual fields of the different contacts of that user.

下面是关于事物到目前为止,我已经做了code

below is the code on the things i have done so far

   public int Search()
   {

           searchClient = new XMLRPCClient("http://"+lp.HOST+":"+lp.IN_PORT+lp.URL_XML+lp.URL_OBJECT);

           try
           {
                   record = (Array[]) searchClient.call("search",lp.DB_NAME, lp.uid1, lp.PASSWORD, "res.partnet.contact","execute", arguments);

           }
           catch(Exception e)
           {
                   Log.i("------------------ CONNECTION FAILED Search", e.toString());
           }

           return 0;
   }

我AP preciate给予帮助

i appreciate the help given

感谢您,

推荐答案

尝试交换方法的位置搜索执行。该方法执行必须在搜索。也尝试 searchClient.callEx 只喜欢你做上面改为调用!

try to interchange the position of method search and execute.The method execute must be given before search.Also try searchClient.callEx instead call only like you do it above!

record = (Array[]) searchClient.callEx("execute",lp.DB_NAME, lp.uid1, lp.PASSWORD, "res.partnet.contact","search", arguments);

这篇关于Android的OpenERP的搜索请求XMLRPC的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆