Hi,
I have loop calling the following function a certain number of times with different parameters. 
My problem is that it stops after a while, 
never on the same record, without a trappable error. 
I have determined that the error occurs on the 
$soapclient->call line, since the line that follows it is never executed in those cases. 
It's not a problem with a particular call because I can start the loop from where it stopped and it works fine, until it decides to stop again (after 10 or a thousand executions, never the same).
Here is the function that is called:
 	
	function getSearchInfo ($param, $action) {
 
   global $searchservername;
 
   global $namespace;
 
   
 
   print " - getSearchInfo - IN -";
 
   $soapclient = new soapclient($searchservername);
 
   
 
   print " - NEW - ";
 
      
 
   // Check for constructor error
 
   $err = $soapclient->getError();
 
   if ($err) {
 
      // Display the error
 
      echo '<p><b>Constructor error: ' . $err . '</b></p>';
 
   }
 
   
 
   $soapAction=$action;
 
   
 
   print " - BEFORE CALL -";
 
   
 
   $result = $soapclient->call($action, $param, $namespace, $soapAction);
 
 
   print " - CALL -"; // When then "error" occurs this is not even printed
 
   
 
   // Check for a fault
 
   if ($soapclient->fault) {
 
      echo '<p><b>Fault: ';
 
      print_r($result);
 
      echo '</b></p>';
 
   } else {
 
      // Check for errors
 
      $err = $soapclient->getError();
 
      if ($err) {
 
         // Display the error
 
         echo '<p><b>Error: ' . $err . '</b></p>';
 
      } else {
 
         print " - ROOT -";      
 
         $root = $result['ROOT'];
 
         $data = $root['DATA'];
 
         $rows = $data['row'];
 
         
 
         print " - RETURN -";               
 
         return $rows;
 
 
      }
 
   }
 
   
 
   // kill object 
 
   unset($soapclient);
 
} | 	
 
All the 
print  lines are for debugging purposes. 
I would need it to either STOP crashing, or at least let me capture that error.
Thanks for your help. Hope my explanation wasn't too confusing.
[/b]