Skip to content

Instantly share code, notes, and snippets.

@bjfish
Created April 18, 2010 20:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bjfish/370518 to your computer and use it in GitHub Desktop.
Save bjfish/370518 to your computer and use it in GitHub Desktop.
{groovy}
import org.apache.xmlrpc.XmlRpcException;
import org.apache.xmlrpc.client.XmlRpcClient;
import org.apache.xmlrpc.client.XmlRpcClientConfigImpl;
//For use with the confluence script plugin and zCALM Server
XmlRpcClient client = new XmlRpcClient();
XmlRpcClientConfigImpl config = new XmlRpcClientConfigImpl();
config.setServerURL(new URL("http://localhost:8090/ZXmlRpcServer/zXmlRpcServlet"));
client.setConfig(config);
def params = new Object[0]
def results = client.execute("ZXmlRpcApi.listHierachyClasses",params);
println("<h4>Concepts</h4>")
println("<ul>")
results.each {k,v -> println("<li>${v.label} - ${v.comment}</li>")}
println("</ul>")
{groovy}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment