Warning message

Documentation is currently being migrated into the new system. Some pages might be temporarily missing, and some guides might appear empty. Thank you for your patience while we are improving Drupal.org documentation.


Last updated on
October 13, 2016 - 19:30

Drupal has an XML-RPC API that helps you provide methods for clients to call, and also a client library to make it easier to call methods on servers.

Server side

Providing XML-RPC methods for clients to consume is easy, and is akin to implementing a hook_menu to provide normal page callbacks. You will want to implement hook_xmlrpc(). The Examples project also has an example of implementing hook_xmlrpc in both Drupal 6 & 7.

Client side

Drupal contains a useful implementation of an XML-RPC client, the documentation of which is on the API site on the xmlrpc() function. The Examples project also has an example of using xmlrpc in both Drupal 6 & 7 to perform method calls over XML-RPC.