473,320 Members | 1,859 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Anyone using the SOAPpy library?

Is anyone using the SOAPpy library? I just started looking at this was was
pretty impressed with how easy it is to set up a server, the readme gives a
short example of a 'hello' sever/client.

But I realized the server doesn't deal with multiple requests, if you set
up a more serious and send something to the server, then a second, it waits
until the first is completed. Now what I'd like to do is have it deal with
multiple client at a time. I've seen proxies and it looks like the way to
do it is with asyncore (and maybe asynchat) but haven't figured it out.

Could anyone tell how it is done, or point me in the right direction?

Thanks, Bill

Jul 18 '05 #1
1 1431
On Fri, Feb 27, 2004 at 04:56:01AM +0000, Bill wrote:
Is anyone using the SOAPpy library? I just started looking at this was was
pretty impressed with how easy it is to set up a server, the readme gives a
short example of a 'hello' sever/client.

But I realized the server doesn't deal with multiple requests, if you set
up a more serious and send something to the server, then a second, it waits
until the first is completed. Now what I'd like to do is have it deal with
multiple client at a time. I've seen proxies and it looks like the way to
do it is with asyncore (and maybe asynchat) but haven't figured it out.

Could anyone tell how it is done, or point me in the right direction?


Twisted has SOAP support built on top of SOAPpy:
http://twistedmatrix.com/documents/howto/xmlrpc#auto4

Note that like asyncore, Twisted is asynchronous and does all its IO in a
single thread, so a single request can block the entire server if you write
blocking code. The Twisted docs cover various techniques for dealing with
this problem, and the mailing list is very helpful.

With Twisted's SOAP support, the simplest way is probably to make your
soap_foo handler methods call reactor.deferToThread to do blocking work in a
thread, but threads aren't the only way to achieve concurrency.

-Andrew.
Jul 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Nello Polesello | last post by:
I'm trying to use a Web Service written in C# from Python (using SOAPpy), and I don't know how to set namespace. I'd like to add the attribute xmlns="http://www.uniud.it/email/" in the tag...
0
by: elsarfhem | last post by:
I have a problem with soappy when i try to send a python dictionary... i send something like this {'1':2,'3':4} and it returns something like this {'1':, '3':4} function on the server is simply an...
0
by: Sameer Deshpande | last post by:
Hi, I am using python SOAPpy module to call a web service. Call to web service gets executed successfully. I am facing a problem if the call to WS results into redirect. I get "HTTPError:...
0
by: Steve | last post by:
Hi All, I have a Python script that uses SOAPpy and I'm outputting all of the methods and info about the parameters... I'm having trouble getting information out of the __init__ parameter. ...
0
by: marcello lussana | last post by:
Hi, I'm trying to send some xml data to a WSDL server. Here's my code: xmldata = "<oesystem<user login=\"nekhem\" password=\"one5076\" tpoa=\"\"<message id=\"1\"<textTest di messaggio 1...
0
by: linuxprog | last post by:
hi all i'm building a webservice client with soappy when i send some informations it's returns an error here is the informations that generates the error var = SOAPpy.structType()...
4
by: Maurice LING | last post by:
Hi, I have a problem: 1. Assuming that my application is a SOAP server that uses SOAPpy, 2. I am given port 35021 for use. What I normally do (simply) is: functionlist =
1
by: Christof Winter | last post by:
I am trying to use a webservice with SOAPpy: import SOAPpy intact_wsdl = "http://www.ebi.ac.uk/intact/binary-search-ws/binarysearch?wsdl" intact_serv = SOAPpy.WSDL.Proxy(intact_wsdl) The...
1
by: neridaj | last post by:
Hello, I'm going through the SOAP Web Services portion of Mark Pilgrim's tutorial and I'm getting this error when trying to build: python setup.py build Traceback (most recent call last):...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.