I wanna use Redstone XML-RPC ,then I've created a XML-RPC Server and
Client XML-RPC my refrence is //xmlrpc.sourceforge.net/

but when I use the client I got this error :
(the MyServerAddress clause is the address of the server where the Tomcat is installed)
Exception in thread "main" redstone.xmlrpc.XmlRpcException: The response could not be parsed.
at redstone.xmlrpc.XmlRpcClient.handleResponse(Unknow n Source)
at redstone.xmlrpc.XmlRpcClient.endCall(Unknown Source)
at redstone.xmlrpc.XmlRpcClient.invoke(Unknown Source)
at xml_rpc_client.Client.main(Client.java:9)
Caused by: java.io.FileNotFoundException: MyServerAddress:8080/xml_rpc_servlet/ExampleService
... 4 more

at follow I have written the code of Server an Client :

Server :
import java.io.IOException;
import java.io.PrintWriter;
import redstone.xmlrpc.XmlRpcServlet;
import javax.servlet.*;
import javax.servlet.http.*;

public class ExampleService extends XmlRpcServlet{

public void init(ServletConfig config) throws ServletException {
this.getXmlRpcServer().addInvocationHandler("Devic e",new Device());



Device class:
package xml_rpc_servlet;

public class Device {
int i;
public void getCode(){
public Device() {


Client :
package xml_rpc_client;
import redstone.xmlrpc.XmlRpcClient;

public class Client {
public static void main( String[] args ) throws Exception

XmlRpcClient client = new XmlRpcClient("myserveraddress:8080/xml_rpc_servlet/ExampleService",true);
Object token= client.invoke( "Device.getCode()", new Object[]{} );

public Client() {


I use Tomcat as Servlet container

do you know the solution of this error ?