Loading ...
Sorry, an error occurred while loading the content.

5435Re: [soaplite] SOAP::Lite reconnect

Expand Messages
  • Eric Bridger
    Jun 15, 2006
    • 0 Attachment
      I've used omething like:
      my $service;
      for (1..$n){
      $service = SOAP::Lite->proxy($proxy)->on_fault( sub { } );
      if ( !$service->is_success ) {
      sleep 10;
      }else{
      last;
      }
      }

      Eric


      On Wed, 2006-06-14 at 18:02, longliveajay wrote:
      > Folks,
      >
      > A simple question on my side
      >
      > I am currenlty using the following call to connect to a webservice:
      >
      >
      > my $soap = SOAP::Lite
      > -> uri('https://www.abc.com/')
      > -> on_action(sub {sprintf '"%s%s"', @_})
      > -> proxy('');
      >
      > if the connection fails I would like the program to attempt
      > reconnection n number of times. Any ideas on how to achieve this ?
      >
      >
      >
    • Show all 2 messages in this topic