Apologies if this is an old question; I can't find any searchable list archives, and
trawling through the suds code itself hasn't thrown up anything.
I have an app which connects to a soap service at initialisation (it's a slow
process), and then infrequently invokes methods on it over the day.
I need to test if my connection is still "alive", since if no method is called
for some time, the connection appears to be lost.
So I'm looking for something akin to (this is obviously incomplete):
def connect(self):
self.client = Client(url)
self.sessionId = self.client.service.StartCallableRunrep(port, db, user, passwd)
def process(self, ...):
if not self.client.isAlive():
self.connect()
self.client.service.RunRemoteMethod(...)
but I can find nothing equivalent to an isAlive().
I don't really want to run the query, find it's lost connection, then run it
again.
Bevis
Bevis Peters
Head of System Development
[cid:imageb44842.jpg@7447ea0d.900d4e90]
Reech AiM Partners LLP, Kingsley House, Wimpole Street, London, W1G 0RE,
<
http://www.reechaim.com/>
DDI: +44 20 7399 3678
Switchboard: +44 20 7399 3650
Fax: +44 20 7399 3698
Email: Bevis.Peters(a)reechaim.com
<
http://www.reechaim.com/>
Reech AiM Partners LLP, Registered Office: 42-44 Portman Road, Reading, Berkshire, RG30
1EA. Registered in England and Wales No. OC321436. Authorised and regulated by the
Financial Services Authority.
Reech CBRE Alternative Real Estate LLP, Registered Office: 42-44 Portman Road, Reading,
Berkshire, RG30 1EA. Registered in England and Wales No. OC322313. Authorised and
regulated by the Financial Services Authority.
This message and any attachments (the "message") is intended solely for the
addressees and is confidential. If you receive this message in error, please delete it and
immediately notify the sender. Any use not in accord with its purpose, any dissemination
or disclosure, either whole or partial, is prohibited except by formal approval. The
internet can not guarantee the integrity of this message. We shall not therefore be
liable for the message if modified.