On this page
XML-RPC overview
Last updated on
30 November 2016
Drupal 7 will no longer be supported after January 5, 2025. Learn more and find resources for Drupal 7 sites
The XML-RPC subsystem gives external systems the opportunity to communicate with the site through the XML-RPC protocol. Pointing an XML-RPC client at http://sitename/xmlrpc.php allows this communication to take place. For more information, see the online handbook entry for XML-RPC API.
Performs one or more XML-RPC request(s).
Usage example
$result = xmlrpc('http://example.com/xmlrpc.php', array(
'service.methodName' => array($parameter, $second, $third),
));
$url: An absolute URL of the XML-RPC endpoint.$args: An associative array whose keys are the methods to call and whose values are the arguments to pass to the respective method. If multiple methods are specified, asystem.multicallis performed.$headers: (optional) An array of headers to pass along.@return- For one request:
- Either the return value of the method on success, or
FALSE. - If
FALSEis returned, seexmlrpc_errno()andxmlrpc_error_msg().
- Either the return value of the method on success, or
- For multiple requests:
- An array of results. Each result will either be the result returned by the method called, or an
xmlrpc_errorobject if the call failed. Seexmlrpc_error().
- An array of results. Each result will either be the result returned by the method called, or an
- For one request:
Issue Queues
- Drupal 4.0.x to 7.x : https://www.drupal.org/project/issues/drupal?text=&status=Open&component...
Help improve this page
Page status: No known problems
You can:
You can:
- Log in, click Edit, and edit this page
- Log in, click Discuss, update the Page status value, and suggest an improvement
- Log in and create a Documentation issue with your suggestion