I'm trying to connect with openERP with the library that openERP or odoo uses with their examples. But the Apache library of xmlrpc, I can't find it.
Here is the documentation that openERP gives but they use the apache library : https://www.odoo.com/documentation/8.0/api_integration.html
And the library should be downloadable from : http://www.apache.org/dyn/closer.cgi/ws/xmlrpc/
But the link gives me 404 error's, does anyone know a good library/documentation to get it work with an android device?
public class MainActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
OpenErpConnect oc = OpenErpConnect.connect("2x7.13x.xxx.xxx", 8069, "DBNAME", "admin", "xxxxxxxxxxxxxxxx");
List<HashMap<String, Object>> list = oc.read("res.partners", new Integer[] {1, 2, 3}, new String[] {"name"});
String result = "";
for (HashMap<String, Object> item : list) {
result += (String)item.get("name")+"\n";
}
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.main, menu);
return true;
}
@Override
public boolean onOptionsItemSelected(MenuItem item) {
// Handle action bar item clicks here. The action bar will
// automatically handle clicks on the Home/Up button, so long
// as you specify a parent activity in AndroidManifest.xml.
int id = item.getItemId();
if (id == R.id.action_settings) {
return true;
}
return super.onOptionsItemSelected(item);
}
}