Helma Logo
main list history
previous version  overview  next version

Version 1 by anton on 08. August 2008, 11:23

==Prerequisite

This sample uses the Jala extension to Helma, so you have to use Helma 1.6.x or get Jala from *http://dev.orf.at/jala*


==Server

    function main_action_xmlrpc(methodName, param) {
        switch(methodName) {
            case "addDoc":
                return this[methodName](param);
                break;
            default:
                return "method '" + methodName + "' not supported!";
                break;
        }
        return ;
    }



    function addDoc(param) {
        return "added '" + param.name + "' to the search index.";
    }



==Client

    var xmlReq = new jala.XmlRpcRequest("http://localhost:8080/xmlrpcserver/", "addDoc");
    var xmlRes = xmlReq.execute({name: "ist einfach gut"});
    res.debug(xmlRes.result);

     removed
     added