php - Insert data in Postgres with XML-RPC -
i trying insert data postgres database xml-rpc. code insert data in postgres database
<?php $customer_array = array('name'=>new mlrpcval('customer name',"string")); $client = new xmlrpc_client("http://xxx.xxx.x.xx:8069/xmlrpc/object"); $msg = new xmlrpcmsg('execute'); $msg->addparam(new xmlrpcval($dbname, "string")); $msg->addparam(new xmlrpcval($user_id, "int")); $msg->addparam(new xmlrpcval($pwd, "string")); $msg->addparam(new xmlrpcval("res.partner", "string")); $msg->addparam(new xmlrpcval("create", "string")); $msg->addparam(new xmlrpcval($customer_array, "struct")); $resp = $client->send($msg); $customer_id = $resp->value()->scalarval(); ?>
i getting following error
"faultstring access denied" know how can solve it? missing anything? highly appreciated. ke
Comments
Post a Comment