我正在尝试通过XML-RPC将数据插入到Postgres数据库中。 postgres数据库中插入数据的代码
<?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();
?>
我收到以下错误 &#34; faultString访问被拒绝&#34; 有谁知道我怎么解决它? 我错过了什么吗?非常感谢您的帮助。 ke