跳至內容
選單
此問題已被標幟
1 回覆
4990 瀏覽次數

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

頭像
捨棄
最佳答案

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

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
3月 17
4745
1
1月 16
4934
2
12月 19
22838
0
8月 22
1699
3
6月 20
4684