1

Can I be able to consume Python RPC service in Java?

Now I have a working prototype.. I wanted to get a list of all the available services in the server..

XmlRpcClient client = new XmlRpcClient();
XmlRpcClientConfigImpl config = new XmlRpcClientConfigImpl();
config.setServerURL(new URL("http://192.168.1.15:8010"));
client.setConfig(config);
Object[] params = new Object[0];

Object result = client.execute("hello",params);
deeshank
  • 4,286
  • 4
  • 26
  • 32
  • 1
    `Can I be able to consume Python RPC service in Java?` - Yes. Any other questions? – Darin Dimitrov Oct 09 '12 at 08:44
  • I'm sorry, but I find it very hard to figure out what you are asking here. It would help if you included some code to show what you have tried, it'll make it much easier for us to help you. Perhaps you could also take a look at http://whathaveyoutried.com for a great article on how to ask good questions? – Martijn Pieters Oct 09 '12 at 09:06
  • There are different RPC protocols implemented in Python. You should ask not "Python RPC service in Java" but "{PyRo|RPyC|whatever} service in Java". – Alexei Kaigorodov Oct 09 '12 at 09:20
  • Sorry guys.. I wanted to try and create a prototype.. Now i have a working prototype. I wanted to list down all the available RPCmethods on the server at the client end. How do I do that with apache XMLRPC lib... – deeshank Oct 09 '12 at 11:35

0 Answers0