How can I call a python method from the XML-RPC client in Java?

Johnny deBris johnny at johnnydebris.net
Fri Apr 21 02:52:19 EDT 2006


evelyne0510 at gmail.com wrote:
> Hi all,
>     I have created a XML-RPC model (with server and client) written in
> Java.
>     I want to call the methods in another XML-RPC model written in
> Python.
>     I know that in Java, I can use like
> "xmlrpc_client.excute("handler_name.method", param)" to call the
> methods in my xml-rpc server written in java.
>    But how can I call the methods in Python? I cannot creat a handler
> in my Python XML-RPC server.....
> 
Not sure what you mean by 'creating a handler in your Python RPC
server', but if you just want to use the Python XMLRPC library to make a
call to an XMLRPC server, there's an example in the documentation:

http://docs.python.org/lib/xmlrpc-client-example.html

Hope that helps.

Cheers,

Guido



More information about the Python-list mailing list