Client will need,

client.execute("chojones.<methodname>", Vector params);

As far as I remember.

When you register with

server.addHandler($default, echHandle);

you can use,

client.Execute("<methodname>", VEctor params);

to add different handles to do different things, just use addHandler
several times using another -name- :

server.addHandler("one", someHandlerOne);
server.addHandler("two", someHandlerTwo);

then,

client.execute("one.<somemethod>", params);
client.execute("two.<someothermethod>", params);

hope this helps

Wednesday, October 2, 2002, 7:27:48 PM, you wrote:

JC> If I extend XmlRpcHandler and call it echHandle. When the server adds the
JC> Handler by the name of cjones. like:
JC>         server.addHandler ("cjones", echHandle);
 
JC> Why does the client still look for echo? Or is it looking for a handler
JC> named $default?
JC> Error: org.apache.xmlrpc.XmlRpcException: java.lang.Exception: RPC handler
JC> object not found for "echo": no default handler registered.
 
JC> I am calling the correct method name in the execute as such:
JC> Object result = client.execute ("cjones", v);

JC> How do you add handlers of different names to perform different functions?

 
JC> Thanks,
JC> Chris Jones
JC> (806)349-5775
 
 
JC> "Spoken words are the symbols of mental experience, and written words are
JC> the symbols of spoken words."
JC> Aristotle
 


-- 
Frederik Uyttersprot @ HOME


Reply via email to