hello,

I just try to run examples, after reading doc.
It's seems to running fine, but not at all ...

It seems to always use the default Handler : Echo()

1 / I lauch a server :
    $ java org.apache.xmlrpc.WebServer
    Usage: java org.apache.xmlrpc.WebServer <port>
    started web server on port 8080
2 / then a client :
    $ java org.apache.xmlrpc.XmlRpcClient  http://localhost:8080 echo toto
[toto]

so that's working.
but if I try other method I've found in source like "string" or "math"
e.g. : in class org.apache.xmlrpc.WebServer :
    ...
    webserver.addHandler("string", "Welcome to XML-RPC!");
    webserver.addHandler("math", Math.class);
    ...

It is always do like if calling the default Hnadler : method "echo" :

    $ java org.apache.xmlrpc.XmlRpcClient  http://localhost:8080 string abc
    [abc]
    $ java org.apache.xmlrpc.XmlRpcClient  http://localhost:8080 math abc
    [abc]

Is some one get a idea ???

Cyrille


Reply via email to