vbrtrmn has asked for the wisdom of the Perl Monks concerning the following question:
500 Can't connect to 255.255.255.255:80 (connect: timeout)My question is: Is there a good way to fail gracefully?
my $soapClient = SOAP::Lite->new(
service => "file:/home/test/files/my.wsdl.xml",
proxy => "http://255.255.255.255/services/soapservice"
);
# Using the call() method causes the 500 error, because there's obviously nothing on 255.255.255.255
$som = $soapClient->call('getCustomerNameByIPAddress','10.10.10.10');
--
paul
|
|---|