Hi everyone.

I am currently working on a project and I am new to php xmlrpc and openerp.

I came across sample codes but I cannot figure out the method being called nor
is it documented in the OpenERP xmlrpc definitions.

The link for the sample code is :
http://doc.openerp.com/v5.0/developer/6_22_XML-RPC_web_services/index.html

The link for the method definitions is here : http://doc.openerp.com/v5.0/developer/2_5_Objects_Fields_Methods/methods.html

I don't understand how the xmlrpcmsg is being built, more precisely in the sample code, what does this part do :
$msg = new xmlrpcmsg('execute');

Please anyone, guide me on this one.

Check these links: http://phpxmlrpc.sourceforge.net/doc-1.1/ch05s02.html & http://phpxmlrpc.sourceforge.net/doc-2/ch07s02.html (updated version)

The constructor takes the following form:

$msg=new xmlrpcmsg( $methodName,
$parameterArray);
$methodName;
$parameterArray;
Where methodName is a string indicating the name of the method you wish to invoke, and parameterArray is a simple Array of xmlrpcval objects.

where $methodName is 'execute' in your example. Bye :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.