Skip to content
Syntax sugar and other goodies for working with xml-rpc.el
Emacs Lisp
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md
xrc.el

README.md

xrc

Syntax sugar and other goodies for working with xml-rpc.el

Using xml-rpc is prone to code like:

(setq myurl "http://hostname:port/path")
(xml-rpc-method-call myurl 'method "arg")
(xml-rpc-method-call myurl 'other-method "other-arg")

This library lets us instead write:

(xrc-defcaller service :url "http://hostname:port/path")
(service 'method "arg")
(service 'other-method "other-arg")

Sure that doesn't look much shorter but it adds up. The syntactical sugar makes a difference for exploratory programming, but could also provide benefits such as sanity checks on method names and arguments for XML-RPC services.

Append :checked-p t to the end of the xrc-defcaller line to have an error raised immediately by the library if a method is called that is not supported by the endpoint.

You can’t perform that action at this time.