function xmlrpc

Performs one or more XML-RPC request(s).

Usage example:

$result = xmlrpc('http://example.com/xmlrpc.php', array(
  'service.methodName' => array(
    $parameter,
    $second,
    $third,
  ),
));

Parameters

$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, a system.multicall is performed.

$options: (optional) An array of options to pass along to drupal_http_request().

Return value

For one request: Either the return value of the method on success, or FALSE. If FALSE is returned, see xmlrpc_errno() and xmlrpc_error_msg(). For multiple requests: An array of results. Each result will either be the result returned by the method called, or an xmlrpc_error object if the call failed. See xmlrpc_error().

5 calls to xmlrpc()
XmlRpcBasicTest::testListMethods in drupal/core/modules/xmlrpc/lib/Drupal/xmlrpc/Tests/XmlRpcBasicTest.php
Ensure that a basic XML-RPC call with no parameters works.
XmlRpcBasicTest::testMethodSignature in drupal/core/modules/xmlrpc/lib/Drupal/xmlrpc/Tests/XmlRpcBasicTest.php
Ensure that system.methodSignature returns an array of signatures.
XmlRpcMessagesTest::testAlterListMethods in drupal/core/modules/xmlrpc/lib/Drupal/xmlrpc/Tests/XmlRpcMessagesTest.php
Ensure that hook_xmlrpc_alter() can hide even builtin methods.
XmlRpcMessagesTest::testSizedMessages in drupal/core/modules/xmlrpc/lib/Drupal/xmlrpc/Tests/XmlRpcMessagesTest.php
Make sure that XML-RPC can transfer large messages.
XmlRpcValidatorTest::testValidator in drupal/core/modules/xmlrpc/lib/Drupal/xmlrpc/Tests/XmlRpcValidatorTest.php
Run validator1 tests.
1 string reference to 'xmlrpc'
xmlrpc_server_page in drupal/core/modules/xmlrpc/xmlrpc.server.inc
Process an XML-RPC request.

File

drupal/core/modules/xmlrpc/xmlrpc.module, line 65
Enables XML-RPC functionality.

Code

function xmlrpc($url, $args, $options = array()) {
  module_load_include('inc', 'xmlrpc');
  return _xmlrpc($url, $args, $options);
}