2785RE: [soaplite] Catching a 500 Error client side?
- Jul 7, 2003First of all, an error will be in $@ (not $!). You also forgot
semicolon after closing eval bracket.
Most important -- Soap::Lite does NOT die in case of 500 fault,
so eval will NOT catch any error.
From: Byrne Reese [mailto:breese@...]
Sent: Thursday, July 03, 2003 3:55 PM
To: Adhamh Findlay
Cc: SOAP Lite Mailing List
Subject: Re: [soaplite] Catching a 500 Error client side?
You should be able to wrap the call in an eval block and effectively
catch the error:
my $soap = SOAP::Lite->service("http:/some.server.com:4221");
# An error will be stored in $! if one occurs.
On Thu, 2003-07-03 at 12:09, Adhamh Findlay wrote:
> I've got a simple soap client that looks like this:
> use SOAP::Lite;
> my $soap = SOAP::Lite->service("http:/some.server.com:4221");
> $soap->setPersonStatus(30, 1000039);
> Right now, if the server is down or otherwise times out I get this
> Service description 'http:/some.server.com' can't be loaded: 500 Can't
> to some.server.com:4221 (Timeout)
> At this point, my client dies. This client actually needs to keep
> the background...
> Is there a way to catch this 500 error on the client side, report the
> and keep running? I found information in the docs about server side
> and errors, but nothing about the client side.
> Adhamh Findlay
> Yahoo! Groups Sponsor
> click here
> To unsubscribe from this group, send an email to:
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Developer Program Manager
Grand Central Communications
To unsubscribe from this group, send an email to:
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
- << Previous post in topic Next post in topic >>