Skip to content
JavaScript library for talking to XML-RPC servers
JavaScript Python Makefile Shell CSS
Find file
Pull request Compare This branch is 6 commits ahead of timheap:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
docs
tests
README.md
UNLICENSE
bower.json
xmlrpc.js Bug fix: use key for name

README.md

JavaScript XML-RPC library

This is a small library for communicating with XML-RPC services - without worrying about the horrible bloat of XML-RPC. Using this library, you can pass JSON parameters to the library, and receive responses in JSON. Encoding the JSON document is handled for you, intelligently mapping types between the two languages.

Installing

Simply include this library in your page:

<script src="xmlrpc.js"></script>

This was built using ES5 features. It will probably work with shims for old browsers.

Using

The XMLRPC.XMLRPCRequest class is the main work-horse of this library. It is a wrapper around the XMLHttpRequest class that works with XML-RPC documents. Use it like so:

TODO

It takes all of the same arguments as XMLHttpRequest, so refer there for more documentation. Upon completion of a request, the XMLRPCRequest instance will have one extra parameter, responseJSON.

See the docs section on Encoding and Decoding XML-RPC Documents for more information on how types are encoded

Handling errors

TODO

Documentation

The full documentation can be found on Read The Docs.

Something went wrong with that request. Please try again.