Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/389.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/facebook/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用JAVA中的python RPC服务_Java_Python_Rpc_Xmlrpclib - Fatal编程技术网

使用JAVA中的python RPC服务

使用JAVA中的python RPC服务,java,python,rpc,xmlrpclib,Java,Python,Rpc,Xmlrpclib,我可以在Java中使用Python RPC服务吗 现在我有了一个工作原型。。我想获得服务器中所有可用服务的列表 XmlRpcClient client = new XmlRpcClient(); XmlRpcClientConfigImpl config = new XmlRpcClientConfigImpl(); config.setServerURL(new URL("http://192.168.1.15:8010")); client.setConfig(config); Object

我可以在Java中使用Python RPC服务吗

现在我有了一个工作原型。。我想获得服务器中所有可用服务的列表

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);

我可以使用Java中的Python RPC服务吗?
-可以。还有其他问题吗?对不起,我发现很难弄明白你在问什么。如果您包含一些代码来显示您所做的尝试,这将有所帮助,这将使我们更容易帮助您。也许您还可以阅读一篇关于如何提出好问题的优秀文章?Python中实现了不同的RPC协议。你不应该问“Java中的Python RPC服务”,而应该问“Java中的{PyRo | RPyC | whatever}服务”。。我想尝试创建一个原型。。现在我有了一个工作原型。我想在客户端列出服务器上所有可用的RPCmethods。如何使用ApacheXMLRPC库实现这一点。。。