Re: XML-RPC(using SimpleXMLRPCServer) slow on the first call

2009-10-13 Thread Gabriel Genellina
En Mon, 12 Oct 2009 18:58:45 -0300, Mahi Haile begin.middle@gmail.com escribió: Hello all,I have an xml-rpc server running on a machine in the same LAN as the client. Both the server and the client are in Python. When I have a series of xmlrepc calls from the client to the server

Client-server PDF creation with xtopdf, XML-RPC, ReportLab and Python

2009-10-04 Thread vasudevram
Hi group, I've released a software package named PDFXMLRPC. It consists of a server and a client. Using them, you can do client-server PDF creation from text, over the Internet or your intranet. It runs over XML-RPC and uses HTTP as the transport. It can work with any available port, including

Re: Client-server PDF creation with xtopdf, XML-RPC, ReportLab and Python

2009-10-04 Thread vasudevram
On Oct 4, 7:38 pm, vasudevram vasudev...@gmail.com wrote: Hi group, snip/ I'll update the README.txt file to correct that error soon.) Done. Corrected README.txt uploaded (as part of updated zip file). I forgot to mention, in the original post above, that both the client and the server

[issue1360243] Add XML-RPC Fault Interoperability to XMLRPC libraries

2009-06-20 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Rejecting the patch because of lack of responsiveness. -- resolution: - rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1360243

[issue1360243] Add XML-RPC Fault Interoperability to XMLRPC libraries

2009-04-22 Thread Daniel Diniz
Changes by Daniel Diniz aja...@gmail.com: -- keywords: +easy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1360243 ___ ___ Python-bugs-list

[issue1360243] Add XML-RPC Fault Interoperability to XMLRPC libraries

2009-03-20 Thread Daniel Diniz
Changes by Daniel Diniz aja...@gmail.com: -- stage: - test needed type: - feature request versions: +Python 2.7, Python 3.1 -Python 2.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1360243

Jabber xml-rpc

2009-01-22 Thread makkalot
Hi all i have a program which does some xml-rpc work over SSL, i want now to add some NAT capibilites to my program. The way i thought is to use jabber and send my calls over jabber xml-rpc and ssl it. - Is it the best way to make sth 'natted'? - If yes which library do u reccommend ? twisted

XML-RPC

2008-10-26 Thread asit
what is XML-RPC System -- http://mail.python.org/mailman/listinfo/python-list

Re: XML-RPC

2008-10-26 Thread Stefan Behnel
asit wrote: what is XML-RPC System Doesn't Wikipedia tell you that? Stefan -- http://mail.python.org/mailman/listinfo/python-list

Re: XML RPC Problem....

2008-09-13 Thread Usman Ajmal
Please explain the arguments of send_request. What exactly are the connection, handler and request_body? It will be really helpful if you give an example of how do i call send_request On Thu, Sep 11, 2008 at 7:18 AM, Fredrik Lundh [EMAIL PROTECTED]wrote: Usman Ajmal wrote: And i also fount

Re: XML RPC Problem....

2008-09-13 Thread Fredrik Lundh
Usman Ajmal wrote: Please explain the arguments of send_request. What exactly are the connection, handler and request_body? It will be really helpful if you give an example of how do i call send_request you don't call send_request. you should pass the SecureTransport instance as an

Re: XML RPC Problem....

2008-09-13 Thread Usman Ajmal
Where exactly should i call ServerProxy? Following is the code from my client.py t = SecureTransport() t.set_authorization(ustring, text_ucert) server = xmlrpclib.Server('http://localhost:8000/',transport=t) print server.s() Note: Full code for client is here at

Re: XML RPC Problem....

2008-09-13 Thread Fredrik Lundh
Usman Ajmal wrote: Where exactly should i call ServerProxy? Following is the code from my client.py ServerProxy is the preferred name. Server is an old alias for the same class. t = SecureTransport() t.set_authorization(ustring, text_ucert) server =

Re: XML RPC Problem....

2008-09-13 Thread Usman Ajmal
Problem is that when i start client (while the server is already running), i get an error i.e. Error 500 Internal Server Error On Sat, Sep 13, 2008 at 3:58 PM, Fredrik Lundh [EMAIL PROTECTED]wrote: Usman Ajmal wrote: Where exactly should i call ServerProxy? Following is the code from my

Re: XML RPC Problem....

2008-09-13 Thread Fredrik Lundh
Usman Ajmal wrote: Problem is that when i start client (while the server is already running), i get an error i.e. Error 500 Internal Server Error that's a server error, not a client error. check the server logs (e.g. error.log or similar). /F --

Re: XML RPC Problem....

2008-09-13 Thread Usman Ajmal
Yeah right but i don't see something wrong in my server's code. Following is my server's simple code import SimpleXMLRPCServer #server = ServerProxy(http://betty.userland.com;) class AuthenticationFunctions: def s(self): print something... server =

Re: XML-RPC filter

2008-09-12 Thread luigi . paioro
On 11 Set, 18:45, Richard Levasseur [EMAIL PROTECTED] wrote: Because he wants to insert parameters at the very start, he can probably get away with modifying the xml directly.  Just find the position of the params (i think thats the tag) and insert the xml you need after it.  Its pretty dirty,

XML RPC Problem....

2008-09-11 Thread Usman Ajmal
Hi everyone, I am trying to call a function named system.auth at the server side running at localhost:8080 but at the same time i want to set the http header. I found that header can be set by h.putheader(AUTHORIZATION, Basic %s%encodestring(%s:%s % (ustring,text_ucert)))

Re: XML RPC Problem....

2008-09-11 Thread Fredrik Lundh
Usman Ajmal wrote: And i also fount that a typical system.auth call will look like: POST /xmlrpc/clarens_server.py HTTP/1.0 Host: localhost User-Agent: xmlrpclib.py/0.9.9 (by www.pythonware.com http://www.pythonware.com) Content-Type: text/xml Content-Length: 105 AUTHORIZATION: Basic

Re: XML RPC Problem....

2008-09-11 Thread Usman Ajmal
Thanks for ur help. But now i am getting an error xmlrpclib.ProtocolError: ProtocolError for localhost:8000/RPC2: 500 Internal Server Error Here is my code at http://privatepaste.com/d81Kut9AFj Any idea what wrong am i doing? On Thu, Sep 11, 2008 at 7:18 AM, Fredrik Lundh [EMAIL

Re: XML-RPC filter

2008-09-11 Thread Richard Levasseur
On Sep 10, 2:04 pm, Diez B. Roggisch [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] schrieb: On 9 Set, 17:55, Diez B. Roggisch [EMAIL PROTECTED] wrote: I would go for a slightly different approach: make your server have a dispatch-method that delegates the calls to the underlying actual

Re: XML-RPC filter

2008-09-10 Thread luigi . paioro
On 9 Set, 17:55, Diez B. Roggisch [EMAIL PROTECTED] wrote: I would go for a slightly different approach: make your server have a dispatch-method that delegates the calls to the underlying actual implementation. But *before* that happens, extract the information as above, and either  -

Re: XML-RPC filter

2008-09-10 Thread Richard Levasseur
On Sep 9, 8:53 am, Luigi [EMAIL PROTECTED] wrote: Dear all, I'm writing an XML-RPC server which should be able to modify the incoming request before dispatching it. In particular I wand to added two fixed parameters to the method called: one is the client host address, and the other

Re: XML-RPC filter

2008-09-10 Thread Diez B. Roggisch
[EMAIL PROTECTED] schrieb: On 9 Set, 17:55, Diez B. Roggisch [EMAIL PROTECTED] wrote: I would go for a slightly different approach: make your server have a dispatch-method that delegates the calls to the underlying actual implementation. But *before* that happens, extract the information as

XML-RPC filter

2008-09-09 Thread Luigi
Dear all, I'm writing an XML-RPC server which should be able to modify the incoming request before dispatching it. In particular I wand to added two fixed parameters to the method called: one is the client host address, and the other is the user name provided as for Basic Authentication (http

Re: XML-RPC filter

2008-09-09 Thread Diez B. Roggisch
Luigi wrote: Dear all, I'm writing an XML-RPC server which should be able to modify the incoming request before dispatching it. In particular I wand to added two fixed parameters to the method called: one is the client host address, and the other is the user name provided as for Basic

Authentication for XML-RPC Calls

2008-07-22 Thread whitemice
The only documentation regarding doing authentication for XML-RPC I can find is - Both the HTTP and HTTPS transports support the URL syntax extension for HTTP Basic Authentication: http://user:[EMAIL PROTECTED]:port/path. The user:pass portion will be base64-encoded as an HTTP `Authorization

Re: Authentication for XML-RPC Calls

2008-07-22 Thread Larry Bates
whitemice wrote: The only documentation regarding doing authentication for XML-RPC I can find is - Both the HTTP and HTTPS transports support the URL syntax extension for HTTP Basic Authentication: http://user:[EMAIL PROTECTED]:port/path. The user:pass portion will be base64-encoded as an HTTP

Re: Python XML-RPC Server with clientside Javascript

2008-07-05 Thread paul
XML-RPC examples with javascript but all of them I found assume XML-RPC services to be deliver from a web server, such as Apache, as a CGI. I'd think this has nothing to do with CGI vs. free-standing, the client couldn't tell the difference anyway. It looks like you're running in the same origin

Re: Python XML-RPC Server with clientside Javascript

2008-07-05 Thread akineko
Hello Paul, Thank you very much for your prompt and clear answer. I didn't know the same origin javascript security policy (as I'm not familiar with javascript). After reading the description of the same origin javascript policy, I think you are absolutely correct. The security policy does make

Python XML-RPC Server with clientside Javascript

2008-07-04 Thread akineko
') print s.my_method() I tested all methods one by one and they are working as I intended. Now, I want to use those exposed methods from a static html file (without any web server) using client side javascript. (i.e. Open File... from the browser (or file://...) ) I found many XML-RPC examples

Want a strange XML RPC server

2008-01-08 Thread Laszlo Nagy
Hi, I would like to have a strage XML RPC server. It should use one main thread for all connections. I have some code like this (using a custom RPC server class): server_address = (LISTEN_HOST, LISTEN_PORT) # (address, port) server = mess.SecureXMLRPCServer.SecureXMLRPCServer

Re: xml-rpc timeout

2007-09-24 Thread Steve Holden
Lawrence D'Oliveiro wrote: In message [EMAIL PROTECTED], Steve Holden wrote: Timeouts shouldn't be a normal feature of TCP communications. On the contrary, they should. How else are you going to detect that the other side has died? You missed the point, which is that TCP hosts shouldn't

Re: xml-rpc timeout

2007-09-22 Thread Lawrence D'Oliveiro
In message [EMAIL PROTECTED], Steve Holden wrote: Timeouts shouldn't be a normal feature of TCP communications. On the contrary, they should. How else are you going to detect that the other side has died? -- http://mail.python.org/mailman/listinfo/python-list

xml-rpc timeout

2007-09-21 Thread Jd
Hi I have a multi-threaded application. For certain operations to the server, I would like to explicitly set timeout so that I get correct status from the call and not timed out exception. Does anyone know how to go about doing it ? /Jd --

Re: xml-rpc timeout

2007-09-21 Thread Steve Holden
Jd wrote: Hi I have a multi-threaded application. For certain operations to the server, I would like to explicitly set timeout so that I get correct status from the call and not timed out exception. Does anyone know how to go about doing it ? The easiest way is to use

Re: xml-rpc timeout

2007-09-21 Thread Jd
this to be an easy thing to achieve. In order to make xml-rpc easy to use.. it has become difficult to control. Anyone have any other ideas ? /Jd -- http://mail.python.org/mailman/listinfo/python-list

Re: xml-rpc timeout

2007-09-21 Thread Steve Holden
are writing Python, so you can write import socket socket.setdefaulttimeout(60) and this will apply to all sockets that on't have their own explicit timeouts applied. Give it a try. I would have thought this to be an easy thing to achieve. In order to make xml-rpc easy to use.. it has become

Re: Asynchronous XML-RPC client library?

2007-04-29 Thread Martin v. Löwis
Jarek Zgoda schrieb: Is there anything like that? Googling yields many articles on async servers, but virtually nothing on clients. I have to talk to remote in an environment that does not allow threads... My recommendation would be to use xmlrpclib, and combine it with the async framework

Re: Asynchronous XML-RPC client library?

2007-04-29 Thread Jarek Zgoda
Martin v. Löwis napisał(a): Is there anything like that? Googling yields many articles on async servers, but virtually nothing on clients. I have to talk to remote in an environment that does not allow threads... My recommendation would be to use xmlrpclib, and combine it with the async

Re: Asynchronous XML-RPC client library?

2007-04-29 Thread Stefano Canepa
On 29 Apr, 07:11, Jarek Zgoda [EMAIL PROTECTED] wrote: Is there anything like that? Googling yields many articles on async servers, but virtually nothing on clients. I have to talk to remote in an environment that does not allow threads... -- Jarek Zgodahttp://jpa.berlios.de/ Why don't you

Re: Asynchronous XML-RPC client library?

2007-04-29 Thread Jarek Zgoda
Stefano Canepa napisał(a): Is there anything like that? Googling yields many articles on async servers, but virtually nothing on clients. I have to talk to remote in an environment that does not allow threads... Why don't you try twisted (http://www.twistedmatrix.com) Because this is a

Asynchronous XML-RPC client library?

2007-04-28 Thread Jarek Zgoda
Is there anything like that? Googling yields many articles on async servers, but virtually nothing on clients. I have to talk to remote in an environment that does not allow threads... -- Jarek Zgoda http://jpa.berlios.de/ -- http://mail.python.org/mailman/listinfo/python-list

Re: XML-RPC SSL and client side certs?

2007-04-11 Thread Martin v. Löwis
Jeff McNeil schrieb: I apologize for not giving you a Python specific answer, but for the XMLRPC services I've deployed, I front them with Apache and proxy back to localhost:8080. I do all of the encryption and authentication from within the Apache proper and rely on mod_proxy to forward

XML-RPC SSL and client side certs?

2007-04-10 Thread Eli Criffield
Does anyone have an example setup of a XML-RPC sever using client side certs for authentication? And instead of having a list of certs allowed to connect, I'd like to allow any cert signed by my CA. It doesn't seem like it would be to hard to do and I'll probably spend some time setting it up

Re: XML-RPC SSL and client side certs?

2007-04-10 Thread Jeff McNeil
settled on basic authentication, but I see no reason why you couldn't take advantage of mod_ssl. Thanks, hope that helps. Just another option, really. Jeff On 10 Apr 2007 14:43:40 -0700, Eli Criffield [EMAIL PROTECTED] wrote: Does anyone have an example setup of a XML-RPC sever using client

keyword arguments for xml-rpc

2007-03-19 Thread [EMAIL PROTECTED]
I've just noticed that I can't seem to use keyword arguments for xml-rpc requests even though the protocol itself encodes parameter names, types, and values when it sends the xml across the network. This becomes a bit problematic for me because I want to store some XML- RPC method dispatch

Re: keyword arguments for xml-rpc

2007-03-19 Thread Diez B. Roggisch
[EMAIL PROTECTED] wrote: I've just noticed that I can't seem to use keyword arguments for xml-rpc requests even though the protocol itself encodes parameter names, types, and values when it sends the xml across the network. This becomes a bit problematic for me because I want to store

Re: keyword arguments for xml-rpc

2007-03-19 Thread [EMAIL PROTECTED]
Diez, Yes thanx - that (structs) is indeed where my confusion lies... :) Alas, ordered parameters it is. On Mar 19, 5:44 am, Diez B. Roggisch [EMAIL PROTECTED] wrote: I don't see[1] the possibility to pass keyword arguments via XMLRPC. Where did you get that impression from? You can pass

Re: who is maintainer of xml-rpc module?

2006-11-26 Thread Martin v. Löwis
Mark Harrison schrieb: So, I've made a couple of small but useful additions to the xml-rpc package. Is there an assigned maintainer of the package I should communicate with? The author of the module is Fredrik Lundh; you can try to contact him. If you want to contribute your changes

Re: who is maintainer of xml-rpc module?

2006-11-26 Thread Fredrik Lundh
Mark Harrison wrote: So, I've made a couple of small but useful additions to the xml-rpc package. Is there an assigned maintainer of the package I should communicate with? post your patch here: http://sourceforge.net/tracker/?group_id=5470atid=305470 /F -- http://mail.python.org/mailman

who is maintainer of xml-rpc module?

2006-11-25 Thread Mark Harrison
So, I've made a couple of small but useful additions to the xml-rpc package. Is there an assigned maintainer of the package I should communicate with? I've got the server side running under apache/mod_python, which is a bit more industrial strength than the simple xmlrpc server, and a patch

Problem with XML-RPC not mounted in /

2006-11-06 Thread Almad
Hi, I'm trying to build XML-RPC service, both server and client library. My server is CherryPy with XML-RPC filter. I have here method registration_ip. When it's in, say http://ws.rpgplanet.nerv/, everything is OK, but when I move it in http://ws.rpgplanet.nerv/main/, this behaviour occur: srv

Re: Problem with XML-RPC not mounted in /

2006-11-06 Thread Almad
Just FYI, this is bug in CP filter machinery, xmlrpc filter do not apply recursively so do not dispatch reuqest. Quick fix is to xmlrpcfilter.on not only on /ws, but also on /ws/main Regards, Almad -- http://mail.python.org/mailman/listinfo/python-list

Re: Python SOAP and XML-RPC performance extremely low?

2006-07-07 Thread Fredrik Lundh
Jack wrote: When I try TooFPy with the SOAP and XML-RPC sample client code provided in TooFPy tutorials, a log entry shows up quickly on web server log window, but it takes a long time (5 seconds or longer) okay, 5 seconds... No, I'm not using any accelerator. The code is extremely simple

Re: Solution for XML-RPC over a proxy

2006-07-07 Thread Laszlo Nagy
Andrew R írta: All, I couldn't get my xml-rpc script to work via a corporate proxy. I noticed a few posts asking about this, and a very good helper script by jjk on starship. That script didn't work for me, and I think its a little old -- but it was very helpful to figure it out

Re: Solution for XML-RPC over a proxy

2006-07-07 Thread Stefan Krah
* Andrew R [EMAIL PROTECTED] wrote: All, I couldn't get my xml-rpc script to work via a corporate proxy. I noticed a few posts asking about this, and a very good helper script by jjk on starship. That script didn't work for me, and I think its a little old -- but it was very helpful

Re: Python SOAP and XML-RPC performance extremely low?

2006-07-07 Thread Jack
Ha! Thanks Fredrik for the big hint :) I wasn't careful when reading that page. Was in too much of a hurry to try the code :) and a 5 as the second argument in the greeting call. I wonder what that does ? ;-) (if you need a hint, look for waits the given number of seconds on this page:

Re: XML-RPC + SimpleHTTPServer question

2006-07-07 Thread jbrewer
Thank you very much, Fredrik. Your code and suggestion worked perfectly. I haven't benchmarked the plain HTTP post vs Binary wrapper, but strangely even using the naive Binary wrapper in Python sends files much faster than how Java + Axis wraps byte arrays in SOAP messages. Jeremy --

Re: Python SOAP and XML-RPC performance extremely low?

2006-07-07 Thread skip
-second delay for such a small example doesn't seem to be an XML-RPC problem. A simple round-trip to my XML-RPC server running on the localhost takes about 5 *milli*seconds. That's with sgmlop installed, but even without it, I can't imagine it taking more than 50-100 ms. Skip -- http

Re: Python SOAP and XML-RPC performance extremely low?

2006-07-07 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: As someone else noted though, a five-second delay for such a small example doesn't seem to be an XML-RPC problem. A simple round-trip to my XML-RPC server running on the localhost takes about 5 *milli*seconds. even if the service you're connecting is waiting 5

Re: Python SOAP and XML-RPC performance extremely low?

2006-07-07 Thread skip
As someone else noted though, a five-second delay for such a small example doesn't seem to be an XML-RPC problem. A simple round-trip to my XML-RPC server running on the localhost takes about 5 *milli*seconds. Fredrik even if the service you're connecting is waiting 5

Re: mirroring object attributes using xml-rpc

2006-07-06 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: Then the client code can get the value of i like this: c = xmlrpclib.ServerProxy(address) c.geti() but why can't I get the value of i like this? c.i you can't. the XML-RPC protocol only supports method calls, not attribute accesses. How can I implement

Re: mirroring object attributes using xml-rpc

2006-07-06 Thread Irmen de Jong
[EMAIL PROTECTED] wrote: but why can't I get the value of i like this? c.i How can I implement such behaviour? Not supported by XMLRpc. Switch to Pyro: http://pyro.sourceforge.net --Irmen -- http://mail.python.org/mailman/listinfo/python-list

Re: XML-RPC server-client communication

2006-07-06 Thread Marco Aschwanden
server = SimpleXMLRPCServer.SimpleXMLRPCServer((xxx.xxx.xxx.xxx, 22999)) Could it be that xxx.xxx.xxx.xxx stands for '127.0.0.1'? If so... rename it to 'localhost'. If you bind a port to 127.0.0.1 it will be found only on the same machine. Greetings, Marco --

Re: XML-RPC + SimpleHTTPServer question

2006-07-06 Thread Tal Einat
wrote: I'm currently implementing an XML-RPC service in Python where binary data is sent to the server via URLs. However, some clients that need to access the server may not have access to a web server, and I need to find a solution. I came up with the idea of embedding a simple HTTP server

Re: mirroring object attributes using xml-rpc

2006-07-06 Thread skip
sashang Then the client code can get the value of i like this: sashang c = xmlrpclib.ServerProxy(address) sashang c.geti() sashang but why can't I get the value of i like this? sashang c.i RPC stands for Remote Procedure Call. You're looking for a remote object access

Python SOAP and XML-RPC performance extremely low?

2006-07-06 Thread Jack
When I try TooFPy with the SOAP and XML-RPC sample client code provided in TooFPy tutorials, a log entry shows up quickly on web server log window, but it takes a long time (5 seconds or longer) for the client to output a Hello you. It seems like the web server is fast because the log entry shows

Re: Python SOAP and XML-RPC performance extremely low?

2006-07-06 Thread skip
Jack When I try TooFPy with the SOAP and XML-RPC sample client code Jack provided in TooFPy tutorials, a log entry shows up quickly on web Jack server log window, but it takes a long time (5 seconds or longer) Jack for the client to output a Hello you. For XML-RPC are you using

Re: XML-RPC server-client communication

2006-07-06 Thread Stefka
no, its an extern IP adress. For my needs the server and the client must be on different machines. But I opened the port and it worked. Thanks anyway :) Greetz, Stefka Marco Aschwanden wrote: server = SimpleXMLRPCServer.SimpleXMLRPCServer((xxx.xxx.xxx.xxx, 22999)) Could it be that

Re: Python SOAP and XML-RPC performance extremely low?

2006-07-06 Thread Boris Borcic
Jack wrote: When I try TooFPy with the SOAP and XML-RPC sample client code provided in TooFPy tutorials, a log entry shows up quickly on web server log window, but it takes a long time (5 seconds or longer) for the client to output a Hello you. It seems like the web server is fast because

Re: Python SOAP and XML-RPC performance extremely low?

2006-07-06 Thread Jack
No, I'm not using any accelerator. The code is extremely simple (from toofpy): # XML-RPC test import xmlrpclib srv = xmlrpclib.Server('http://localhost:4334/RPC2/greeting') print srv.greeting('you', 5) # SOAP test import SOAPpy srv = SOAPpy.SOAPProxy('http://localhost:4334/SOAP/greeting') print

Solution for XML-RPC over a proxy

2006-07-06 Thread Andrew R
All, I couldn't get my xml-rpc script to work via a corporate proxy. I noticed a few posts asking about this, and a very good helper script by jjk on starship. That script didn't work for me, and I think its a little old -- but it was very helpful to figure it out. The below script

XML-RPC server-client communication

2006-07-05 Thread Stefka
Hi all, I try to implement a python xml-rpc server and call it from a php client. If the server and the client are on the same machine (localhost) the communication between them is just fine. When I start the server on a different host I don't get an answer. What is missing there?? I tried also

Re: XML-RPC server-client communication

2006-07-05 Thread Laszlo Nagy
Stefka írta: Hi all, I try to implement a python xml-rpc server and call it from a php client. If the server and the client are on the same machine (localhost) the communication between them is just fine. When I start the server on a different host I don't get an answer. Please go

XML-RPC + SimpleHTTPServer question

2006-07-05 Thread jbrewer
I'm currently implementing an XML-RPC service in Python where binary data is sent to the server via URLs. However, some clients that need to access the server may not have access to a web server, and I need to find a solution. I came up with the idea of embedding a simple HTTP server in the XML

Re: XML-RPC + SimpleHTTPServer question

2006-07-05 Thread Fredrik Lundh
jbrewer wrote: I'm currently implementing an XML-RPC service in Python where binary data is sent to the server via URLs. However, some clients that need to access the server may not have access to a web server, and I need to find a solution. I came up with the idea of embedding a simple

Re: XML-RPC server-client communication

2006-07-05 Thread Stefka
Hi, thanx for the hint :)! I ran a port scan and it turned out, that the port was realy closed. Thanx again! greetz, Stefka Laszlo Nagy wrote: Please go to the machine where you php program resides, and check if the server is not blocked by firewall rules. For example, do telnet

Re: XML-RPC + SimpleHTTPServer question

2006-07-05 Thread jbrewer
Fredrik Lundh wrote: why not just use an ordinary HTTP POST request ? Sorry for such a simple question, but how would I do this? XML-RPC runs on top of HTTP, so can I do a POST without running a separate HTTP server? Jeremy -- http://mail.python.org/mailman/listinfo/python-list

Re: XML-RPC + SimpleHTTPServer question

2006-07-05 Thread Fredrik Lundh
jbrewer wrote: Sorry for such a simple question, but how would I do this? XML-RPC runs on top of HTTP, so can I do a POST without running a separate HTTP server? the XML-RPC protocol uses HTTP POST, so if you can handle XML-RPC, you should be able to handle any POST request. what server

Re: XML-RPC + SimpleHTTPServer question

2006-07-05 Thread jbrewer
What server are you using? Just SimpleXMLRPCServer from the standard library. -- http://mail.python.org/mailman/listinfo/python-list

Re: XML-RPC + SimpleHTTPServer question

2006-07-05 Thread Fredrik Lundh
jbrewer wrote: Just SimpleXMLRPCServer from the standard library. which means that you should be able to do something like from SimpleXMLRPCServer import SimpleXMLRPCServer,\ SimpleXMLRPCRequestHandler class MyRequestHandler(SimpleXMLRPCRequestHandler): def do_POST(self):

Re: XML-RPC + SimpleHTTPServer question

2006-07-05 Thread jbrewer
Fredrik Lundh wrote: the XML-RPC protocol uses HTTP POST, so if you can handle XML-RPC, you should be able to handle any POST request. what server are you using ? I need some clarification of your suggestion. Instead of sending URLs, I could read the file as a string, create a Binary object

Re: XML-RPC + SimpleHTTPServer question

2006-07-05 Thread jbrewer
OK, I posted my previous message before I saw your reply on how to handle the server side. On the client side, should I use httplib.HTTPConnection.request() to upload the data or can I do this through xmlrpc.ServerProxy objects? Jeremy -- http://mail.python.org/mailman/listinfo/python-list

mirroring object attributes using xml-rpc

2006-07-05 Thread sashang
Hi Say I have a class like the following class Test: i = 1 def geti(self): return self.i And I use it in an xml-rpc server like this: t = Test() s.register_instance(t) Then the client code can get the value of i like this: c = xmlrpclib.ServerProxy(address) c.geti() but why can't I

Re: mirroring object attributes using xml-rpc

2006-07-05 Thread sashang
Just to make things clearer the problem I have is if I do this: c = xmlrpclib.ServerProxy(http://somewhere;) c.i I get this error: Fault 1: exceptions.TypeError:'int' object is not callable So how do I fake things so that xmlrpc knows not to try and call i but gets the value of i instead? --

XML-RPC server with xmlrpclib and mod_python

2006-06-01 Thread Johann C. Rocholl
Hi all, I'm wondering what would be the best way to write an XML-RPC server using mod_python with Apache 2.0. I want the mod_python environment because the rest of my project is web-based, and Apache gives me multi-threading and everything. My first attempt implements XML-RPC introspection

xml-rpc and 64-bit ints?

2006-05-02 Thread Mark Harrison
I've got an API that deals with 64 bit int values. Is there any way of handling this smoothly? Right now I'm casting the values into and out of strings for the API. If not, are there any nice alternatives to XML-RPC that support this? Many TIA! Mark -- Mark Harrison Pixar Animation Studios

Re: xml-rpc and 64-bit ints?

2006-05-02 Thread Martin v. Löwis
Mark Harrison wrote: I've got an API that deals with 64 bit int values. Is there any way of handling this smoothly? Right now I'm casting the values into and out of strings for the API. In XML-RPC, everything is transmitted as a string, so I don't think that choice is really that bad

Re: How can I call a python method from the XML-RPC client in Java?

2006-04-23 Thread Martin v. Löwis
[EMAIL PROTECTED] wrote: Hi all, I have created a XML-RPC model (with server and client) written in Java. I want to call the methods in another XML-RPC model written in Python. I know that in Java, I can use like xmlrpc_client.excute(handler_name.method, param) to call the methods in my xml

Re: How can I call a python method from the XML-RPC client in Java?

2006-04-21 Thread Johnny deBris
[EMAIL PROTECTED] wrote: Hi all, I have created a XML-RPC model (with server and client) written in Java. I want to call the methods in another XML-RPC model written in Python. I know that in Java, I can use like xmlrpc_client.excute(handler_name.method, param) to call

Re: How can I call a python method from the XML-RPC client in Java?

2006-04-21 Thread Eric Brunel
On 20 Apr 2006 11:31:23 -0700, [EMAIL PROTECTED] wrote: Hi all, I have created a XML-RPC model (with server and client) written in Java. I want to call the methods in another XML-RPC model written in Python. I know that in Java, I can use like xmlrpc_client.excute

How can I call a python method from the XML-RPC client in Java?

2006-04-20 Thread evelyne0510
Hi all, I have created a XML-RPC model (with server and client) written in Java. I want to call the methods in another XML-RPC model written in Python. I know that in Java, I can use like xmlrpc_client.excute(handler_name.method, param) to call the methods in my xml-rpc server written

Re: XML-RPC server via xinetd

2006-04-17 Thread Nick Craig-Wood
Jos Vos [EMAIL PROTECTED] wrote: I'm trying to figure out how to implement a XML-RPC server that is called by xinetd i.s.o. listening on a TCP socket itself. I already have implemented a stand-alone XML-RPC server using SimpleXMLRPCServer, but I now want something similar

Re: XML-RPC server via xinetd

2006-04-17 Thread Jos Vos
an xinetd-only program, that's all fine with me. The problem is that I do not see how to let an SimpleXMLRPCServer instance *not* bind to a port or what other class I can use to just build a XML-RPC request handler reading/writing from stdin/stdout, i.s.o. carrying all the server class stuff

Re: XML-RPC server via xinetd

2006-04-17 Thread Brian Quinlan
Jos Vos wrote: The problem is that I do not see how to let an SimpleXMLRPCServer instance *not* bind to a port or what other class I can use to just build a XML-RPC request handler reading/writing from stdin/stdout, i.s.o. carrying all the server class stuff with it. I think that the problem

Re: XML-RPC server via xinetd

2006-04-17 Thread Jos Vos
On Mon, Apr 17, 2006 at 12:10:15PM +0200, Brian Quinlan wrote: If you take a look at CGIXMLRPCRequestHandler (http://docs.python.org/lib/node564.html), you will see an example of how to write an XMLRPCRequestHandler without HTTP. Thanks, this might work for me, will try it. -- --Jos

Re: XML-RPC server via xinetd

2006-04-17 Thread Jos Vos
On Mon, Apr 17, 2006 at 03:30:04AM -0500, Nick Craig-Wood wrote: UTSL ;-) Look at /usr/lib/python2.4/SimpleXMLRPCServer.py (adjust as per your distro) and in particular the definition of the CGIXMLRPCRequestHandler class. I did this before posting my question, in fact, but I did not look

Re: XML-RPC server via xinetd

2006-04-17 Thread Brian Quinlan
Jos Vos wrote: On Mon, Apr 17, 2006 at 03:30:04AM -0500, Nick Craig-Wood wrote: UTSL ;-) Look at /usr/lib/python2.4/SimpleXMLRPCServer.py (adjust as per your distro) and in particular the definition of the CGIXMLRPCRequestHandler class. I did this before posting my question, in fact,

Re: XML-RPC server via xinetd

2006-04-17 Thread Fredrik Lundh
and writes to stdout. except that if the OP's expecting the other end to use an ordinary XML-RPC library, he needs to implement some minimal HTTP handling as well. import sys import mimetools, xmlrpclib command = sys.stdin.readline() # optional: check command syntax (POST url HTTP

<    1   2   3   >