Hi all, I'm new user in the forum. I would like to know if someone has used XML RPC with PHP to communicate with OpenERP. Method CREATE, SEARCH e READ works fine (method read with some misunderstand, but works). Can someone write me an example of a call to method WRITE? This is the code that I write (and that doesn't work [Crying or Very sad] ):
$ids = array( new xmlrpcval("$id","string") ); $fileds = array( 'name'=>new xmlrpcval('Captain Hook', "string"), ); $msg = new xmlrpcmsg('execute'); $msg->addParam(new xmlrpcval("200912221445", "string")); $msg->addParam(new xmlrpcval("1", "int")); $msg->addParam(new xmlrpcval("admin", "string")); $msg->addParam(new xmlrpcval("res.partner", "string")); $msg->addParam(new xmlrpcval("write", "string")); $msg->addParam(new xmlrpcval($ids, "array")); $msg->addParam(new xmlrpcval($fields, "array")); $resp = $client->send($msg); Where "200912221445" is my database, "1" is user id and "admin" is the password. Variable $id contains the partner id that I want to modify. I try to look the Python code, but I can not do the porting in PHP. Someone can help me ? Thanks all. Zipgem -------------------- m2f -------------------- -- http://www.openobject.com/forum/viewtopic.php?p=49091#49091 -------------------- m2f -------------------- _______________________________________________ Tinyerp-users mailing list http://tiny.be/mailman2/listinfo/tinyerp-users
