What is the XMLRPC module?
This is a module which allows you to create a local XML-RPC server and/or to make calls on remote XML-RPC servers .
What is XML-RPC?
is a spec and a set of implementations that allow software running on disparate operating systems, running in different environments to make procedure calls over the Internet.
It uses HTTP as the transport and XML as the encoding. XML-RPC is designed to be as simple as possible, while allowing complex data structures to be transmitted, processed and returned.
Here is an example:
It's really easy to set up a server which provides a set of remotely callable functions.
- Create a server object
- Add some methods
- Start the server
- You're done!
It's pretty easy to make the remote calls too
- Create a proxy object to represent the remote server
- Call the remote method via the proxy
- That's all you need
Sample scripts :
- Confluence Example showing how to download a secured Confluence page.
- Another example inspired by Glen's Conluecne example: