Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Trapping Network errors in SOAP::Lite

by mda2 (Hermit)
on Nov 02, 2006 at 14:08 UTC ( [id://581893]=note: print w/replies, xml ) Need Help??


in reply to Trapping Network errors in SOAP::Lite

I prefer to think of SOAP::Lite is a great tool for SOAP protocol, and implement a wrapper for trap failures:

... $Result = $self->{ws}->call( $Call, SOAP::Data->value( @Params ) ); $result = $Result; #-- Check if had connect at server unless ( $Result ) { return undef; } #-- Check fault if ( $Result->fault ) return undef; } #-- Armazena retornos da Requisicao $values = $Result->valueof('//' . $Call . 'Response'); ...

Common faults:

  • Connect fail
  • Timeout on connection
  • Fault on server side

--
Marco Antonio
Rio-PM

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://581893]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2024-04-19 23:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found