Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
how to set timeout while colling a soap method?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
dzizes  
View profile  
 More options Jul 13, 9:07 am
Newsgroups: comp.lang.python
From: dzizes <dzizes...@gmail.com>
Date: Mon, 13 Jul 2009 06:07:52 -0700 (PDT)
Local: Mon, Jul 13 2009 9:07 am
Subject: how to set timeout while colling a soap method?

Hello!

I wrote some some python code for executing a soap method:

import SOAPpy
from SOAPpy import WSDL

_server = WSDL.Proxy(some wsdl)
r=_server.generuj(some parameters...)
print r.encode('cp1250')

It works fine. However, the execution time of this soap method might be
long. Therefore, I would like to set a timeout like 1 minute, after which I
would post a timeoute message.

Any ideas?
Greats,

--
View this message in context: http://www.nabble.com/how-to-set-timeout-while-colling-a-soap-method-...
Sent from the Python - python-list mailing list archive at Nabble.com.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
ryles  
View profile  
 More options Jul 14, 12:12 pm
Newsgroups: comp.lang.python
From: ryles <ryle...@gmail.com>
Date: Tue, 14 Jul 2009 09:12:01 -0700 (PDT)
Local: Tues, Jul 14 2009 12:12 pm
Subject: Re: how to set timeout while colling a soap method?
On Jul 13, 9:07 am, dzizes <dzizes...@gmail.com> wrote:

I don't believe SOAPpy supports this directly. You can set the timeout
globally before you make your SOAP call:

import socket
socket.setdefaulttimeout(60)

http://docs.python.org/library/socket.html#socket.setdefaulttimeout


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
dzizes  
View profile  
 More options Jul 15, 8:07 am
Newsgroups: comp.lang.python
From: dzizes <dzizes...@gmail.com>
Date: Wed, 15 Jul 2009 05:07:20 -0700 (PDT)
Local: Wed, Jul 15 2009 8:07 am
Subject: Re: how to set timeout while colling a soap method?

Yes, that is what I was looking for.

Greets!!

--
View this message in context: http://www.nabble.com/how-to-set-timeout-while-colling-a-soap-method-...
Sent from the Python - python-list mailing list archive at Nabble.com.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google