Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private URI uri;
- uri = URI.create("http://192.168.100.29:8069");
- client = new XMLRPCClient(uri);
- Array[] arr;
- arr = (Array[]) client.call("search", "DevDB", "admin",
- "password", "product.product", "execute");
- HttpResponse response;
- response = client.execute(postMethod);
- String res = null;
- if (null != response) {
- HttpEntity resEntity = response.getEntity();
- res = EntityUtils.toString(resEntity);
- }
- OpenErpConnect op = OpenErpConnect.connect("http://192.168.100.29:8069/", 8069, "DevDB", "admin", "openerp");
- URL loginUrl = new URL("http://192.168.100.29:8069/");
- XMLRPCClient client = new XMLRPCClient(loginUrl);
- Integer id = (Integer)client.call("login", db, user, pass);
- connection = new OpenErpConnect(server, port, db, user, pass, id);
- OpenErpConnect localOpenErpConnect = new OpenErpConnect(
- paramString1, paramString2, paramInteger, paramString3,
- paramString4, paramString5,
- (Integer) new XMLRPCClient(new URL(paramString1,
- paramString2, paramInteger.intValue(),
- "/xmlrpc/common")).call("login", paramString3,
- paramString4, paramString5));
- Long[] ids = conn.search("product.product", new Object[0]);
- System.out.println(ids);
- Object[] responseIds = (Object[]) client.call("execute",
- parameters);
- Traceback (most recent call last):
- File "/opt/openerp/v7/server/openerp/service/wsgi_server.py", line 82, in xmlrpc_return
- result = openerp.netsvc.dispatch_rpc(service, method, params)
- File "/opt/openerp/v7/server/openerp/netsvc.py", line 292, in dispatch_rpc
- result = ExportService.getService(service_name).dispatch(method, params)
- File "/opt/openerp/v7/server/openerp/service/web_services.py", line 611, in dispatch
- (db, uid, passwd ) = params[0:3]
- ValueError: need more than 1 value to unpack
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement