// 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:8001/"))
client = new XmlRpcClient()
client.setConfig(config)
msgs = client.execute("S.process", new Object[] { "Hi from Groovy!" })
for(msg in msgs) {
    println(msg)
}
