// get an array of network resource ids
  $allnets = $soap_client->getAllNetworks();
  // first check to see if we got a SoapFault object from the soap call
  if (get_class($allnets) == "SoapFault") {
    echo "ERROR: ".$allnets->faultstring.'<br>';
  } 
  elseif (is_array($allnets)) {
    foreach ($allnets as $rii) {
      echo 'Network '.$rii->resourceName.' resourceKey = '.
              $rii->resourceKey.'<br>';
    }
  }
?>