Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
4978 มุมมอง

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

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
มี.ค. 17
4745
1
ม.ค. 16
4927
2
ธ.ค. 19
22834
0
ส.ค. 22
1695
3
มิ.ย. 20
4679