cormanaz has asked for the wisdom of the Perl Monks concerning the following question:
Occasionally, the client can't reach the server and it times out. When this happens it throws an error that crashes the client.my $server = SOAP::Lite -> uri('http://www.soaplite.com/duplsvr') + -> proxy('http://my.ip.com/cgi-bin/server.cgi', timeout => 60); $result = $server->process($data);
What I want to do is is put $data on a stack for a later try. But in the case of the timeout I don't even get a chance to check for $result->fault before the client crashes. Is there some way to trap the timeout so the client doesn't crash?
TIA......Steve
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to trap SOAP client timeout
by jhourcle (Prior) on Dec 06, 2005 at 19:40 UTC | |
by cormanaz (Deacon) on Dec 09, 2005 at 13:58 UTC | |
|
Re: How to trap SOAP client timeout
by gu (Beadle) on Dec 06, 2005 at 18:56 UTC |