Xml-Rpc is a simple Remote Procedure Call protocol in XML. Many implementations are referenced at Xml-Rpc home. Join uses the Apache Xml-Rpc implementation for Java on the server side to expose its APIs.
All available services are exposed via the XmlRpcHandler interface. You can find API documentaion here.
These are some parameters and details on how to call Xml-Rpc services:
http://host[:port]/[context]/xmlrpc
,join.
. For calling the
setBuildStatus
service, the method name is join.setBuildStatus
,This is a sample on how to call a Join service from a Groovy script. Because Join has built-in support for launching Groovy scripts, this is a useful piece of code for making your script report a process status...
... import groovy.net.xmlrpc.* def service = new XMLRPCServerProxy("http://localhost:8080/join/xmlrpc") def token = service.join.login("mylogin", "mypassword") println "Got a security token: ${token}" service.join.setBuildStatus(token, "build_ok", buildId) ...
Another sample in pure Java can also be found into Join tests suite.