- Feb 13, 2001Hi!
I'd like to be able to handle all errors from a soap call, including
transport errors, after the call completes. I've set the following
fault handler, which almost works except that the faultstring isn't
available after the call to the method:
my($soap, $res) = @_;
if (defined $res && ref $res)
$res = new SOAP::SOM;
Here's the call and the test of faultstring:
my $soap = SOAP::Lite->new(
on_fault => \&fault);
my $result = $soap->call('hi');
I'm very new to this, so I may be making an obvious mistake.
- Next post in topic >>