An open API service indexing awesome lists of open source software.

https://github.com/spacebat/xrc

Syntax sugar and other goodies for working with xml-rpc.el
https://github.com/spacebat/xrc

Last synced: 5 months ago
JSON representation

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

Awesome Lists containing this project

README

          

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.