open erp xml rpc
I am trying to retrieve data from openerp using xml rpc php i am writing a code to retrieve data please verify the code and provide the solution.
<?php
include(
$usr='admin';
$pwd='aslasl';
$db='SPCRM';
$url='http://
$sock= new xmlrpc_
$msg = new xmlrpcmsg('login');
$msg->addParam(new xmlrpcval($db, "string"));
$msg->addParam(new xmlrpcval($usr, "string"));
$msg->addParam(new xmlrpcval($pwd, "string"));
$resp = $sock->send($msg);
$val = $resp->value();
$id = $val->scalarval();
echo $id;
//search model
$url_search='http://
$sock_search=new xmlrpc_
$args=array(
$msg_search=new xmlrpcmsg(
$msg_search-
$msg_search-
$msg_search-
$msg_search-
$msg_search-
$msg_search-
$resp_search= $sock_search-
$val_search=
if ($resp_
{
echo 'Error'
}
else
{
echo 'Your Details are submitted and your refrence id is :'.$resp_
}
$url_read='http://
$sock_read=new xmlrpc_
$msg_read=new xmlrpcmsg(
$arrVal=
$msg_read-
$msg_read-
$msg_read-
$msg_read-
$msg_read-
$msg_read-
$msg_read-
$resp_read= $sock_read-
$val_read=
$read=$
echo $read;
?>
this code is not working ...it is giving us error
Traceback (most recent call last): File "netsvc.pyo", line 244, in dispatch File "netsvc.pyo", line 73, in __call__ File "C:\Documents and Settings\
please provide the solutions
Question information
- Language:
- English Edit question
- Status:
- Answered
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask vinayrks for more information if necessary.