title: XML-RPC with java
body: <p>I'm developing a server in XML-RPC  using Java , but when i compile it , i get this error</p>
  
  <pre><code>ServeurSomDiff.java:33: cannot find symbol
  symbol  : method addHandler(java.lang.String,java.lang.String)
  location: class org.apache.xmlrpc.webserver.WebServer
                  server.addHandler("SOMDIFF",new ServeurSomDiff ());
  </code></pre>
  
  <p>here 's my server :</p>
  
  <pre><code>import java.util.Hashtable;
  import org.apache.xmlrpc.webserver.*;
  public class ServeurSomDiff {
  public ServeurSomDiff (){ 
  }
      public Hashtable sumAndDifference (int x, int y) {
          Hashtable result = new Hashtable();
          result.put("somme", new Integer(x + y));
          result.put("difference", new Integer(x - y));
          return result;
        }
        public static void main (String [] args) {
          try {
                     WebServer server = new WebServer(8000);
             server.addHandler("SOMDIFF",new ServeurSomDiff()); 
     server.start(); 
     System.out.println("Serveur lance sur http://localhost:8000/RPC2");  
         } catch (Exception exception) 
         {System.err.println("JavaServer: " + exception.toString());
               }
             }
          }
  </code></pre>
  
  <p>any ideas on how to fix this .
  thanks</p>