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

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -