Example: XML-RPC in xmlrpc 8
Demonstration of XML-RPC in Drupal 8.
This is an example of how to implement and XML-RPC server by registering callbacks to specific methods and how to make xmlrpc calls using the built-in xmlrpc() factory provided by the XML-RPC module.
See also
xmlrpc()
File
- xmlrpc_example/
xmlrpc_example.module, line 8 - Module file for xmlrpc_example module.
Functions
Name | Location | Description |
---|---|---|
xmlrpc_example_xmlrpc |
xmlrpc_example/ |
Implements hook_xmlrpc(). |
xmlrpc_example_xmlrpc_alter |
xmlrpc_example/ |
Implements hook_xmlrpc_alter(). |
_xmlrpc_example_alter_add |
xmlrpc_example/ |
Sum the two arguments without limit checking. |
_xmlrpc_example_alter_subtract |
xmlrpc_example/ |
Return the difference of the two arguments without limit checking. |
_xmlrpc_example_server_add |
xmlrpc_example/ |
This is the callback for the xmlrpc_example.add method. |
_xmlrpc_example_server_subtract |
xmlrpc_example/ |
This is the callback for the xmlrpc_example.subtract xmlrpc method. |