Hello, I try to follow the XML-RPC server example from http://ws.apache.org/xmlrpc/server.html.
I copied the Calculator class from that site. I also copied the Server class (below the "The WebServer class" heading) and put "Calculator=org.apache.xmlrpc.demo.Calculator" into the file MyHandlers.properties. When running the server and calling Calculator.add(), I get this exception from the server: --- begin --- Feb 7, 2009 11:52:11 PM org.apache.xmlrpc.server.XmlRpcStreamServer execute SEVERE: execute: Error while performing request org.apache.xmlrpc.server.XmlRpcNoSuchHandlerException: No such handler: Calculator.add at org.apache.xmlrpc.server.AbstractReflectiveHandlerMapping.getHandler(AbstractReflectiveHandlerMapping.java:203) at org.apache.xmlrpc.server.XmlRpcServerWorker.execute(XmlRpcServerWorker.java:42) at org.apache.xmlrpc.server.XmlRpcServer.execute(XmlRpcServer.java:83) at org.apache.xmlrpc.server.XmlRpcStreamServer.execute(XmlRpcStreamServer.java:191) at org.apache.xmlrpc.webserver.Connection.run(Connection.java:205) at org.apache.xmlrpc.util.ThreadPool$Poolable$1.run(ThreadPool.java:63) --- end --- What have I done wrong? Just for completeness, here is the client used for connecting. --- begin Client.java --- package org.apache.xmlrpc.demo.webserver; import java.net.MalformedURLException; import java.net.URL; import org.apache.xmlrpc.XmlRpcException; import org.apache.xmlrpc.client.XmlRpcClient; import org.apache.xmlrpc.client.XmlRpcClientConfigImpl; public class Client { public static void main(String[] args) throws XmlRpcException, MalformedURLException { // TODO Auto-generated method stub XmlRpcClientConfigImpl config = new XmlRpcClientConfigImpl(); config.setServerURL(new URL("http://127.0.0.1:8080")); XmlRpcClient client = new XmlRpcClient(); client.setConfig(config); Object[] params = new Object[]{new Integer(33), new Integer(9)}; Integer result = (Integer) client.execute("Calculator.add", params); } } --- end --- -- View this message in context: http://www.nabble.com/apache-xmplrpc-example----No-such-handler%3A-Calculator.add-tp21893927p21893927.html Sent from the Apache Xml-RPC - Dev mailing list archive at Nabble.com.