On this page
XML-RPC api overview
Drupal 7 will no longer be supported after January 5, 2025. Learn more and find resources for Drupal 7 sites
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.
Help improve this page
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