python client call Java server by xmlrpc

2015-01-22 Thread fan . ding1
Hi all I have xmlrpc server written in Java, and it has a method like Fun( vector, vector), the vector is array of user-defined object, which is a class extends HashMap. And I call it like: server = xmlrpclib.ServerProxy("http://myserver";) server.Fun( [ {"0.5":0.1}], [ ] ) It always fails

Re: python client call Java server by xmlrpc

2015-01-30 Thread fan . ding1
Thanks dieter, The issue is solved. I use SmartSniff to get the xml message send by java client, and python client, find the difference. Define a new class: class MyData(object): def __init__(self,myKey,myValue): self.Key = myKey self.Value = myValue and use this object as p