How to forward request through lighttpd server to xmlrpc server

2010-04-29 Thread Mishra Gopal-QBX634
Hi, I have Lighttpd web server running on port 80. and i have a xmlrpc web server running on port 8085 How i can send all my request/response to xmlrpc server through lighttpd server running on port 80? Thanks and regards, Gopal -- http://mail.python.org/mailman/listinfo/python-list

confused with creating doctest in xmlrpc server

2009-04-03 Thread Krishnakant
hello all, I am thinking of using the doctest module for my unit testing code in python. I have no problems doing this in usual classes but I am a bit confused with my twisted based rpc classes. given that I directly take the output of running functions on a python prompt for the dockstrings, how

Re: How to Implement an XMLRPC Server in Python?

2008-10-29 Thread Zix
On Oct 29, 11:26 pm, "Daniel Fetchinson" <[EMAIL PROTECTED]> wrote: > These pages might be useful, they include example code: Thanks Daniel, they do help. On Oct 29, 11:42 pm, "Guilherme Polo" <[EMAIL PROTECTED]> wrote: > Why did you decide to "expose" a web service through xmlrpc instead of > ac

Re: How to Implement an XMLRPC Server in Python?

2008-10-29 Thread Diez B. Roggisch
Guilherme Polo schrieb: On 10/29/08, Zix <[EMAIL PROTECTED]> wrote: Hello, I am a newbie to python and trying to get a hang of some of its advanced features through an application I am building. Basically, I'd like to build a weather forecasting web service. The clients should be able to que

Re: How to Implement an XMLRPC Server in Python?

2008-10-29 Thread Guilherme Polo
On 10/29/08, Zix <[EMAIL PROTECTED]> wrote: > Hello, > I am a newbie to python and trying to get a hang of some of its > advanced features through an application I am building. Basically, I'd > like to build a weather forecasting web service. The clients should be > able to query the service wi

Re: How to Implement an XMLRPC Server in Python?

2008-10-29 Thread Daniel Fetchinson
rpcserver.html http://code.activestate.com/recipes/81549/ http://code.activestate.com/recipes/496786/ http://www.google.com/search?q=python+xmlrpc+server+example Cheers, Daniel -- Psss, psss, put it down! - http://www.cafepress.com/putitdown -- http://mail.python.org/mailman/listinfo/python-list

How to Implement an XMLRPC Server in Python?

2008-10-29 Thread Zix
Hello, I am a newbie to python and trying to get a hang of some of its advanced features through an application I am building. Basically, I'd like to build a weather forecasting web service. The clients should be able to query the service with a location and date and get back the weather forecast.

Re: getting full exception information from an xmlrpc server

2008-08-13 Thread [EMAIL PROTECTED]
On Aug 13, 3:31 pm, Scott <[EMAIL PROTECTED]> wrote: > What I would like is the full stack trace of what went wrong on the > server (i.e. the junk python usually dumps to the console when an > exception occurs). I don't care which side I see the dump on (client > or server), but I need to see the

Re: getting full exception information from an xmlrpc server

2008-08-13 Thread Fredrik Lundh
Scott wrote: I'm debugging an xmlrpc client/server application. Often when an exception occurs in the server, I receive only a very short error message on the client. For example: xmlrpclib.Fault: :"> Presumably this is because xmlrpclib on the server is catching the exception, and only se

getting full exception information from an xmlrpc server

2008-08-13 Thread Scott
I'm debugging an xmlrpc client/server application. Often when an exception occurs in the server, I receive only a very short error message on the client. For example: xmlrpclib.Fault: :"> Presumably this is because xmlrpclib on the server is catching the exception, and only sending the except

Re: XMLRPC Server

2007-02-06 Thread Brian Quinlan
Fredrik Lundh wrote: > well, if you're talking pure CGI, you need to start the interpreter, > import the required modules, connect to the database, unmarshal the > xml-rpc request, talk to the database, marshal the response, and shut > down, in less than 30 milliseconds. > > just importing the

Re: XMLRPC Server

2007-02-06 Thread Fredrik Lundh
Brian Quinlan wrote: > Actually, you might not have to. 2000 calls/minute isn't that big, > assuming you have a decent server. well, if you're talking pure CGI, you need to start the interpreter, import the required modules, connect to the database, unmarshal the xml-rpc request, talk to the d

Re: XMLRPC Server

2007-02-06 Thread Paul Boddie
On 6 Feb, 12:30, "Lorenzo" <[EMAIL PROTECTED]> wrote: > Unfortunately I have to use Apache. The server implementation will we > very easy, so I'm also considering more efficient solutions than > python You could try mod_python if there isn't an absolute requirement for CGI: http://www.modpython.o

Re: XMLRPC Server

2007-02-06 Thread Brian Quinlan
[EMAIL PROTECTED] wrote: > Hi, I'm trying to create an XMLRPC server using apache + python (cgi). > It's not too difficult to configure everything, but I would like to > tune it in order to receive up to 2000 calls per minute without any > problems. That doesn't seem

Re: XMLRPC Server

2007-02-06 Thread Lorenzo
Unfortunately I have to use Apache. The server implementation will be very easy, so I'm also considering more efficient solutions than python lv On Feb 6, 11:36 am, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > Hi, I'm trying to c

Re: XMLRPC Server

2007-02-06 Thread Lorenzo
Unfortunately I have to use Apache. The server implementation will we very easy, so I'm also considering more efficient solutions than python lv On Feb 6, 11:36 am, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > Hi, I'm trying to c

Re: XMLRPC Server

2007-02-06 Thread Diez B. Roggisch
[EMAIL PROTECTED] wrote: > Hi, I'm trying to create an XMLRPC server using apache + python (cgi). > It's not too difficult to configure everything, but I would like to > tune it in order to receive up to 2000 calls per minute without any > problems. Do Pthon CGIs use threa

XMLRPC Server

2007-02-06 Thread viscanti
Hi, I'm trying to create an XMLRPC server using apache + python (cgi). It's not too difficult to configure everything, but I would like to tune it in order to receive up to 2000 calls per minute without any problems. Do Pthon CGIs use threading? I need to make it very efficient, but

Re: Passing com object from simple xmlrpc server to client

2006-11-27 Thread Diez B. Roggisch
tsjuan schrieb: > Hello python users, > > I am just learning on how to use xmlrpc and stumbled upon how to pass > com object > from server to client side. > > The client side complain about can't marshall the com object. I don't > know what type > of marshall command I should use to pass the obje

Passing com object from simple xmlrpc server to client

2006-11-27 Thread tsjuan
Hello python users, I am just learning on how to use xmlrpc and stumbled upon how to pass com object from server to client side. The client side complain about can't marshall the com object. I don't know what type of marshall command I should use to pass the object. Below are my scripts, any hel

Re: question about xmlrpc server: returning a list of lists to a Java client?

2006-10-22 Thread fortepianissimo
fortepianissimo wrote: > I have a simple xmlrpc server/client written in Python, and the client > throws a list of lists to the server and gets back a list of lists. > This runs without a problem. > > I then wrote a simple Java xmlrpc client and it calls the python > server.

question about xmlrpc server: returning a list of lists to a Java client?

2006-10-22 Thread fortepianissimo
I have a simple xmlrpc server/client written in Python, and the client throws a list of lists to the server and gets back a list of lists. This runs without a problem. I then wrote a simple Java xmlrpc client and it calls the python server. But I can't figure out what type to cast the resul

Resolved: Secure XMLRPC Server / PEM Files

2006-09-12 Thread Daniel Crespo
Hi everybody, For those who want to implement a SecureXMLRPCServer (HTTPS), here is what I finally found in the Internet. I will summarise everything for the people like me that need extra help just to get running an HTTPS XMLRPC Server :) This summary is not intended to be exhaustive, but just

Re: Secure XMLRPC Server / PEM Files

2006-09-12 Thread Daniel Crespo
Hi Laszlo, > Try this (untested): > > openssl req -config openssl.cnf -new -out my-server.csr > openssl rsa -in privkey.pem -out my-server.key Here's what I tried: C:\OpenSSL\bin>openssl req -config openssl.cnf -new -out my-server.csr Loading 'screen' into random state - done Generating a 1024 b

Re: Secure XMLRPC Server / PEM Files

2006-09-12 Thread Laszlo Nagy
Daniel Crespo írta: > Hi Laszlo, > > I have read that. It's the wrapper for the usage of OpenSSL, so I have > to install it. I have downloaded the Borland C++ compiler, and I'm > doing so right now, but I'm not getting good results yet. > You do not need any compiler. You just need to install th

Re: Secure XMLRPC Server / PEM Files

2006-09-11 Thread Daniel Crespo
Hi Laszlo, I have read that. It's the wrapper for the usage of OpenSSL, so I have to install it. I have downloaded the Borland C++ compiler, and I'm doing so right now, but I'm not getting good results yet. I tried to import OpenSSL, it seems to work. Now, I want to try the code I submited earli

Re: Secure XMLRPC Server / PEM Files

2006-09-11 Thread Laszlo Nagy
Daniel Crespo írta: > Laszlo Nagy wrote: > >>> If you have OpenSSL installed, you can do the following: >>> >>> 1. Create a new directory and place the two attached files in it >>> (openssl.cnf and generate.sh) >>> 2. Run "chmod +x gen_cert.sh ; ./gen_cert.sh yourdomain.com" >>> >> I me

Re: Secure XMLRPC Server / PEM Files

2006-09-11 Thread Daniel Crespo
Laszlo Nagy wrote: > > > > > > If you have OpenSSL installed, you can do the following: > > > > 1. Create a new directory and place the two attached files in it > > (openssl.cnf and generate.sh) > > 2. Run "chmod +x gen_cert.sh ; ./gen_cert.sh yourdomain.com" > I meant generate.sh instead of gen

Re: Secure XMLRPC Server / PEM Files

2006-09-11 Thread Laszlo Nagy
> > > If you have OpenSSL installed, you can do the following: > > 1. Create a new directory and place the two attached files in it > (openssl.cnf and generate.sh) > 2. Run "chmod +x gen_cert.sh ; ./gen_cert.sh yourdomain.com" I meant generate.sh instead of gen_cert.sh. Under windows it won't

Re: Secure XMLRPC Server / PEM Files

2006-09-11 Thread Laszlo Nagy
Daniel Crespo írta: Hello everybody, I'm trying to implement a secure xmlrpc server with basis on http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/496786 recipe. The thing that I'm concerned about is how can I get/create rapidly the .pem files (the key and cert). Any help?

Secure XMLRPC Server / PEM Files

2006-09-11 Thread Daniel Crespo
Hello everybody, I'm trying to implement a secure xmlrpc server with basis on http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/496786 recipe. The thing that I'm concerned about is how can I get/create rapidly the .pem files (the key and cert). Any help? Thanks Daniel

Re: secure xmlrpc server?

2006-06-09 Thread Kent Johnson
Kent Johnson wrote: > Laszlo Nagy wrote: >> But I do not know how to create an XML RPC server in Python that uses >> HTTPS for XML transports. > > This recent recipe seems to do exactly what you want: > http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/496786 It was gently pointed out to m

Re: secure xmlrpc server?

2006-06-09 Thread Kent Johnson
Laszlo Nagy wrote: > But I do not know how to create an XML RPC server in Python that uses > HTTPS for XML transports. This recent recipe seems to do exactly what you want: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/496786 Kent -- http://mail.python.org/mailman/listinfo/python-list

Re: secure xmlrpc server?

2006-06-07 Thread Martin P. Hellwig
Laszlo Nagy wrote: > http://trevp.net/tlslite/ - no exe installers. > http://sourceforge.net/projects/tlslite/ - no file packages to download > > :-( Download the zip and unpack it: http://trevp.net/tlslite/tlslite-0.3.8.zip Then there is an installers directory >> SimpleXMLRPCServer uses Simpl

Re: secure xmlrpc server?

2006-06-07 Thread Laszlo Nagy
Martin P. Hellwig írta: > Laszlo Nagy wrote: > >> Martin P. Hellwig wrote: >> >>> Laszlo Nagy wrote: >>> >>> Have a look at: >>> http://trevp.net/tlslite/ >>> >>> >> C:\temp\ccc>python setup.py install >> running install >> running build >> running build_py >> running build_ext >

Re: secure xmlrpc server?

2006-06-07 Thread Martin P. Hellwig
Laszlo Nagy wrote: > Martin P. Hellwig wrote: >> Laszlo Nagy wrote: >> >> Have a look at: >> http://trevp.net/tlslite/ >> > C:\temp\ccc>python setup.py install > running install > running build > running build_py > running build_ext > error: The .NET Framework SDK needs to be installed before b

Re: secure xmlrpc server?

2006-06-07 Thread Laszlo Nagy
Martin P. Hellwig wrote: > Laszlo Nagy wrote: > > Have a look at: > http://trevp.net/tlslite/ > C:\temp\ccc>python setup.py install running install running build running build_py running build_ext error: The .NET Framework SDK needs to be installed before building extensions f or Python. C:\t

Re: secure xmlrpc server?

2006-06-07 Thread Martin P. Hellwig
Laszlo Nagy wrote: Have a look at: http://trevp.net/tlslite/ -- mph -- http://mail.python.org/mailman/listinfo/python-list

Re: secure xmlrpc server?

2006-06-07 Thread Jeethu Rao
Using Twisted on the server side for xmlrpc doesn't restrict your options to using only Twisted on the client side. Nothing prevents you from using xmlrpclib.ServerProxy on the client side. Jeethu Rao Laszlo Nagy wrote: > Hello, > > I'm trying to create a simple XMLRPC serv

secure xmlrpc server?

2006-06-07 Thread Laszlo Nagy
Hello, I'm trying to create a simple XMLRPC server and a client. It is a small application, but the connection needs to be secure. I would like the client to be as thin as possible. Ideally, the client should only require the basic python library, nothing else. I found many examples on

xmlrpc server running behind IIS as a CGI

2005-05-02 Thread Chris Curvey
Here's my server: import os import SimpleXMLRPCServer class Foo: def settings(self): return os.environ def echo(self, something): return something def greeting(self, name): return "hello, " + name handler = SimpleXMLRPCServer.CGIXMLRPCRequestHandler() handler.