Changes between Initial Version and Version 1 of XmlRpcApi


Ignore:
Timestamp:
05/28/08 11:42:19 (9 years ago)
Author:
sauermann
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • XmlRpcApi

    v1 v1  
     1= Kaukolu XML-RPC API = 
     2Kaukolu can be queried and contacted through an XML-RPC API. This is for developers who wish to contact a running kaukoluwiki server and remotely trigger functions. 
     3 
     4We use [http://en.wikipedia.org/wiki/XML-RPC XML-RPC] for communication, a nice and simple protocol. 
     5There is helpful documentation at [http://www.jspwiki.org/wiki/WikiRPCInterface JSPwiki.org about the xml-rpc] api. 
     6 
     7The classes used as XML-RPC handlers are here: 
     8 * source:trunk/kaukolu/src/de/opendfki/kaukoluwiki/xmlrpc 
     9 
     10We have '''different XML-RPC implementations''' so we may '''not support the normal JSPWiki RPC methods!''' Refer to your web.xml file where the class com.ecyrd.jspwiki.xmlrpc.RPCServlet is registered - there the actual XML-RPC implementation handler is selected (from multiple available ones). 
     11Look at the registered class - its methods you can call. 
     12 
     13To contact a running kaukoluwiki server, try thise addresses (assuming we run on localhost): 
     14 * http://localhost:8080/kaukolu/RPC2/ 
     15 * http://localhost:8080/kaukolu/RPCU/ 
     16 
     17A simple example using Apache's XML-RPC client to contact kaukolu: 
     18{{{ 
     19XmlRpcClient client = new XmlRpcClient("http://localhost:8080/kaukolu/RPC2/"); 
     20Vector params = new Vector(); 
     21Object result = client.execute("wiki.getRPCVersionSupported", params); 
     22System.out.println(result.getClass().getName()+" - "+result); 
     23}}}