Re: [Twisted-Python] call XMLRPC

2012-04-18 Thread joel tremblet
Hi I found my mistake the data key need to be an integer not string Thank Le 17 avril 2012 23:53, Andrew Bennetts a écrit : > joel tremblet wrote: > […] > > But the code doesn't work, I have the same error message about xml_rpc > > answer > > > > [Failure instance: Traceback: : > 'server err

Re: [Twisted-Python] call XMLRPC

2012-04-18 Thread joel tremblet
Hi I found why the code fail, I missed a integer conversion Thank again Joël Le 17 avril 2012 23:53, Andrew Bennetts a écrit : > joel tremblet wrote: > […] > > But the code doesn't work, I have the same error message about xml_rpc > > answer > > > > [Failure instance: Traceback: : > 'server

Re: [Twisted-Python] call XMLRPC

2012-04-17 Thread Andrew Bennetts
joel tremblet wrote: […] > But the code doesn't work, I have the same error message about xml_rpc > answer > > [Failure instance: Traceback: : 'server error. invalid method parameters'> That's an error from the server. Without knowing how that server works there's not much we can do to help yo

Re: [Twisted-Python] call XMLRPC

2012-04-17 Thread joel tremblet
Thank for your help It's right, the code number 1 is not well structured that is the reason I modified it for the code number 2 But in the first one the xml_rpc call retun the good answer and in the second one I received a error message I tried your code,this is a better structure (The Class Reso

Re: [Twisted-Python] call XMLRPC

2012-04-17 Thread Phil Mayers
On 04/17/2012 03:38 AM, joel tremblet wrote: > I try to declare the Proxy(OF_XMLRPC_URL) differently, without success > > Where is my mistake That code is all wrong, and (to be blunt) pretty horrible too. Why have you re-implemented a HTTP protocol yourself? You're bound to get this wrong

[Twisted-Python] call XMLRPC

2012-04-16 Thread joel tremblet
Hi I started to learn Twisted with the O'Reilly Book Twisted Network Programming Essentials I want to do a daemon to listen on port - when a correct sentence is received, the daemon must to check by querying a server XML_RPC - if the answer from XML_RPC is 1, the HTTP answer will be OK else NOT