| 7 common.inc | xmlrpc( |
| 4.6 xmlrpc.inc | xmlrpc() |
| 4.7 common.inc | xmlrpc($url) |
| 5 common.inc | xmlrpc($url) |
| 6 common.inc | xmlrpc($url) |
| 8 xmlrpc.module | xmlrpc($url, array $args, array $headers = array()) |
Performs one or more XML-RPC request(s).
Parameters
$url: An absolute URL of the XML-RPC endpoint. Example: http://www.example.com/xmlrpc.php
...: For one request: The method name followed by a variable number of arguments to the method. For multiple requests (system.multicall): An array of call arrays. Each call array follows the pattern of the single request: method name followed by the arguments to the method.
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().
- ping_ping in modules/
ping/ ping.module - Implementation of hook_ping().
- xmlrpc.php in ./
xmlrpc.php - PHP page for handling incoming XML-RPC requests from clients.
- xmlrpc_server_get_capabilities in includes/
xmlrpcs.inc - XML-RPC method system.getCapabilities maps to this function. See http://groups.yahoo.com/group/xml-rpc/message/2897
File
- includes/
common.inc, line 2694 - Common functions that many Drupal modules will need to reference.
Code
function xmlrpc($url) {
require_once './includes/xmlrpc.inc';
$args = func_get_args();
return call_user_func_array('_xmlrpc', $args);
}
Comments
More information
PermalinkThis post provides more information that others may find useful: "XML-RPC example"