Created
April 18, 2010 20:17
-
-
Save bjfish/370518 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{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