Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Trapping Network errors in SOAP::Lite

by mda2 (Hermit)
on Nov 02, 2006 at 14:08 UTC ( #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
Node Status?
node history
Node Type: note [id://581893]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2019-12-13 03:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?