// Collection of code snippets by Arne Vajhøj 
// (from articles on eksperten.dk / vajhoej.dk written sometime between 2004 and now) 
import org.apache.xmlrpc.client.*

config = new XmlRpcClientConfigImpl()
config.setServerURL(new URL("http://localhost:8002/"))
client = new XmlRpcClient()
client.setConfig(config)
radd = client.execute("Server.add", new Object[] { 123, 456 })
println(radd)
rconc = client.execute("Server.conc", new Object[] { "ABC", "DEF" })
println(rconc)
rmodify = client.execute("Server.modify", new Object[] { [ ival: 123, sval: "ABC" ] })
printf("(%d,%s)", rmodify.ival, rmodify.sval)
