On Wed, 11 Sep 2002, cyrille wrote: > 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 ???
It looks like the string and math handler are mapped to the echo handler, as you guess. Check the source code for your version to see for sure, or try the latest from CVS to see if it still does the same thing. -- Daniel Rall <[EMAIL PROTECTED]>
