Community mailing list archives

community@mail.odoo.com

Re: xmlrpc/jsonrpc for android-odoo

by
Business ERP
- 01/26/2016 12:13:37
I will take a note on this. Thanks for you help zahid.

On Tue, Jan 26, 2016 at 10:38 PM, zahid jalal <j.zahid@gmail.com> wrote:
Hi
Forgot to mention that in the time we had to rwrite serach method in
the connector, to make it work in v8 .
her is the new code ( Serach method of the connector)
public Long[] newSearch( String model, Object[] conditions)
{

    XMLRPCClient  searchClient = new  XMLRPCClient(mUrl);
    Long[] result = null;


        try
        {

            Object[] responseIds =
(Object[])searchClient.call("execute",mDatabase,mUserId,mPassword,model,"search",conditions);
            result = new Long[responseIds.length];
            for (int i = 0; i  Thanks  zahid. I will test it in V9.
> On Tue, Jan 26, 2016 at 10:07 PM, zahid jalal < j.zahid@gmail.com [1] >
> wrote:
> Hi
> We have used and tested this one
> https://github.com/zikzakmedia/android-openerp [2] for v8. I think it
> should work for 9 as well.
>
> On 1/26/16, Business Erp < businesserpweb@gmail.com [3] > wrote:
>> Hi Alessio,
>> Thanks for your suggestion. I forgot to mention that i have been using
>> Odoo
>> 9 community version. That connector is only available for V6.1 and V7. But
>> i
>> will try to use the base android-xmlrpc [1]
>> On Tue, Jan 26, 2016 at 9:46 PM, Alessio Gerace > alessio.gerace@agilebg.com [4]
>> [2] > wrote:
>> Hi ,  if you want , you can try this
>> https://github.com/archetipo/Openerp-Android-connector [5] [3]
>>
>> 2016-01-26 17:12 GMT+01:00 Business Erp < businesserpweb@gmail.com [6] [4]
>> > :
>> Hello all,
>> I need to make a simple search operation in odoo from android app. I don't
>> want to rely on odoo-mobile framework since i need to make a simple search
>> and my android app is already done in some other way.
>> I have tried to use the Apache XML-RPC library [5] from the api doc. But
>> its working fine in the standalone java file, not in the android app.
>> I have been trying this json lib
>> https://code.google.com/archive/p/android-json-rpc [7] [6] . Its always
>> returning an error. Everything is working fine with python rpc libs.
>> Can somebody provide me sample code in android for xml or json rpc? Any
>> hint
>> will be appreciated.
>> Thanks.
>> _______________________________________________
>> Mailing-List: https://www.odoo.com/groups/community-59 [8] [7]
>> Post to: mailto: community@mail.odoo.com [9] [8]
>> Unsubscribe: https://www.odoo.com/groups?unsubscribe [10] [9]
>>
>>
>> --
>> Alessio Gerace http://www.agilebg.com [11] [10]
>>
>> _______________________________________________
>> Mailing-List: https://www.odoo.com/groups/community-59 [12] [11]
>> Post to: mailto: community@mail.odoo.com [13] [12]
>> Unsubscribe: https://www.odoo.com/groups?unsubscribe [14] [13]
>>
>>
>>
>> _______________________________________________
>> Mailing-List: https://www.odoo.com/groups/community-59 [15] [14]
>> Post to: mailto: community@mail.odoo.com [16]
>> Unsubscribe: https://www.odoo.com/groups?unsubscribe [17] [15]
>>
>>
>>
>> [1] https://code.google.com/archive/p/android-xmlrpc/ [18]
>> [2] mailto: alessio.gerace@agilebg.com [19]
>> [3] https://github.com/archetipo/Openerp-Android-connector [20]
>> [4] mailto: businesserpweb@gmail.com [21]
>> [5] https://ws.apache.org/xmlrpc/ [22]
>> [6] https://code.google.com/archive/p/android-json-rpc [23]
>> [7] https://www.odoo.com/groups/community-59 [24]
>> [8] mailto: community@mail.odoo.com [25]
>> [9] https://www.odoo.com/groups?unsubscribe [26]
>> [10] http://www.agilebg.com/ [27]
>> [11] https://www.odoo.com/groups/community-59 [28]
>> [12] mailto: community@mail.odoo.com [29]
>> [13] https://www.odoo.com/groups?unsubscribe [30]
>> [14] https://www.odoo.com/groups/community-59 [31]
>> [15] https://www.odoo.com/groups?unsubscribe [32]
>>
>
> --
>
> *Odoo Integrator, Data integration *
> *BI and IT consulting.*
> j.zahid@auriumtechnologies.com [33]
> tél 0661360233 - 0636898882
> fax 0528215738
> _______________________________________________
> Mailing-List: https://www.odoo.com/groups/community-59 [34]
> Post to: mailto: community@mail.odoo.com [35]
> Unsubscribe: https://www.odoo.com/groups?unsubscribe [36]
>
>
>
> _______________________________________________
> Mailing-List: https://www.odoo.com/groups/community-59 [37]
> Post to: mailto:community@mail.odoo.com
> Unsubscribe: https://www.odoo.com/groups?unsubscribe [38]
>
>
>
> [1] mailto:j.zahid@gmail.com
> [2] https://github.com/zikzakmedia/android-openerp
> [3] mailto:businesserpweb@gmail.com
> [4] mailto:alessio.gerace@agilebg.com
> [5] https://github.com/archetipo/Openerp-Android-connector
> [6] mailto:businesserpweb@gmail.com
> [7] https://code.google.com/archive/p/android-json-rpc
> [8] https://www.odoo.com/groups/community-59
> [9] mailto:community@mail.odoo.com
> [10] https://www.odoo.com/groups?unsubscribe
> [11] http://www.agilebg.com
> [12] https://www.odoo.com/groups/community-59
> [13] mailto:community@mail.odoo.com
> [14] https://www.odoo.com/groups?unsubscribe
> [15] https://www.odoo.com/groups/community-59
> [16] mailto:community@mail.odoo.com
> [17] https://www.odoo.com/groups?unsubscribe
> [18] https://code.google.com/archive/p/android-xmlrpc/
> [19] mailto:alessio.gerace@agilebg.com
> [20] https://github.com/archetipo/Openerp-Android-connector
> [21] mailto:businesserpweb@gmail.com
> [22] https://ws.apache.org/xmlrpc/
> [23] https://code.google.com/archive/p/android-json-rpc
> [24] https://www.odoo.com/groups/community-59
> [25] mailto:community@mail.odoo.com
> [26] https://www.odoo.com/groups?unsubscribe
> [27] http://www.agilebg.com/
> [28] https://www.odoo.com/groups/community-59
> [29] mailto:community@mail.odoo.com
> [30] https://www.odoo.com/groups?unsubscribe
> [31] https://www.odoo.com/groups/community-59
> [32] https://www.odoo.com/groups?unsubscribe
> [33] mailto:j.zahid@auriumtechnologies.com
> [34] https://www.odoo.com/groups/community-59
> [35] mailto:community@mail.odoo.com
> [36] https://www.odoo.com/groups?unsubscribe
> [37] https://www.odoo.com/groups/community-59
> [38] https://www.odoo.com/groups?unsubscribe
>


-- 



*Odoo Integrator, Data integration *
*BI and IT consulting.*

j.zahid@auriumtechnologies.com
tél  0661360233 - 0636898882
fax 0528215738

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe