Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
4995 Zobrazení

Hi

i have a problem when develop android apps using xmlrpc (use library de.timroes.axmlrpc) to retrive data from odoo 9

i call method to search read like this :

List conditions= Arrays.asList( Arrays.asList( Arrays.asList("id", ">=",3), Arrays.asList("id", "<=", 6)));

Map fields = new HashMap() {{ put("fields", Arrays.asList( "date","salesperson_id","categ_id","product_id","price_total" )); }};


long id = client.callAsync(listener, "execute_kw", db, Integer.parseInt(uid), password, object, "search_read", conditions, fields); return id

but i got exception like this  :

"ecvfrom failed: ECONNRESET (Connection reset by peer"

Do you have an idea ? about this problem solution?

thanks

Avatar
Zrušit
Nejlepší odpověď

Hi Wendra, check the logs in the remote Odoo server, but here you have an example of how to do it for java

https://www.odoo.com/documentation/9.0/api_integration.html#search-and-read

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
bře 17
4746
1
led 16
4938
2
pro 19
22842
0
srp 22
1701
3
čvn 20
4685