ecuguru has asked for the wisdom of the Perl Monks concerning the following question:
When the above code errors out because the client's soap interface is down, it dies with:my $service = SOAP::Lite -> service('http://server/function.asmx?WSDL');
And it stops my loop entirely. I've got the above inside a function call, that gets called by a neverending loop. But when that error happens, the whole thing stops. I'm trying to figure out how I can trap that error, so that I can keep it from stopping the whole thing. Just getting a -1 or a function call would be nice, but haven't figured out how to set it up so that I can put in something like service || &soapGetBad();Service description 'http://server/function.asmx?WSDL' can't be loaded +: 404 Not Found
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Soap::Lite Error Handling
by PodMaster (Abbot) on Feb 24, 2006 at 09:19 UTC | |
|
Re: Soap::Lite Error Handling
by ghoti (Acolyte) on Feb 24, 2006 at 14:09 UTC |