Can someone show a working example on Java of this code in Python:import xmlrpclib
server = "localhost"
service = xmlrpclib.Server('http://%s:19382/RPC2' % server)
results = service.handlePacket('use sessions', { 'type':
'PacketPokerTableSelect', 'string' : table})
for table in results[0]['packets']:
print table['name']
So far I have this on Java and i don't know how to form params variable: import org.apache.xmlrpc.client.XmlRpcClient; import org.apache.xmlrpc.client.XmlRpcClientConfigImpl; import java.net.*; public class Test { public static void main( String args[] ) throws Exception { XmlRpcClientConfigImpl config = new XmlRpcClientConfigImpl(); config.setServerURL(new URL("http://127.0.0.1:19382/RPC2")); XmlRpcClient client = new XmlRpcClient(); client.setConfig(config); Object[] params = new Object[]{}; } } Thanks. |
_______________________________________________ Pokersource-users mailing list [email protected] https://mail.gna.org/listinfo/pokersource-users
