Hello,
Im new in problematic of apache XML-RPC, and currently I am trying to
implement an xml-rpc server in Java SE. Lets say we have an interface
myproject.MyRemoteProcedure and class
myproject.MyRemoteProcedureImplementation, which implements it:
Package myproject;
public interface MyRemoteProcedure {
public String echo(String name);
}
Im using my own webserver class to handle with the procedure above :
WebServer webServer = new WebServer(port);
XmlRpcServer xmlRpcServer = webServer.getXmlRpcServer();
I create a PropertyHandlerMapping for xmlRpcServer directly by providing the
MyRemoteProcedure class:
PropertyHandlerMapping phm = new PropertyHandlerMapping();
phm.addHandler(MyRemoteProcedure, myproject.MyRemoteProcedure.class);
try {
phm.getHandler(MyRemoteProcedure); ß problem ?
} catch (Exception e) {
e.printStackTrace();
}
The problem is that when I try to get a handler back from the handler
mapping, I get a XmlRpcNoSuchHandlerException: No such handler exception.
I received this exception also in the client application when I was trying
to call remote procedure by the ClientFactory. I dont understand why system
doesnt recognize the handler MyRemoteProcedure provided by addHandler
method in previous line.