call('exportSingleParamXML',array('tbl'=>'niwolwq','numrecs'=>'4','param'=>'Temp')); #echo 'Single Parameter Response: '.$wsdl->response.''; //remember to include this same station list in the perl processing xml to sql file #northinlet, ace basin, apalachicola, grandbay, guanatolomato, jobos, northcarolina, rookerybay, sapelo $station_list = array('niwolmet','niwolwq','acebpmet','acespwq','apaebmet','apaebwq','gndcrmet','gndcrwq','gtmpcmet','gtmpcwq','jobjbmet','job20wq','nocrcmet','nocrcwq','rkbuhmet','rkbuhwq','rkblhwq','sapmlmet','sapmlwq','sapldwq','cbmjbmet','cbmocwq','cbmrrwq','cbvgiwq','cbvshwq','cbvtcmet','delllwq','delsjmet','delslwq','elkcwmet','elksmwq','grbglmet','grborwq','hudfsmet','hudtnwq','hudtswq','jacb6wq','jacnewq','jacncmet','kachomet','kachdwq','marabwq','marcemet','narpcmet','nartbwq','owcolwq','owcowmet','pdbpfmet','sfbccwq','sfbrrmet','soschwq','soscmmet','sosvawq','tjroswq','tjrtlmet','wqbchmet','wqbmhwq','wkbfrwq','wkbwbmet','wellfmet'); foreach ($station_list as $station_id) { //echo $station_id; //32 records at one every 15 minutes will give us past 8 hours of data //this process could be tailored better to look for the last collected time data to determine how many records we need now, but just covering the absolute spread for now - process only called once an hour $wsdl->call('exportAllParamsXML',array('tbl'=>$station_id,'numrecs'=>'4')); #echo 'All Parameter Response: '.$wsdl->response.''; $file_out = 'tmp/cdmo_'.$station_id; $fh = fopen($file_out.'.txt', 'w') or die("can't open file"); fwrite($fh, $wsdl->response); fclose($fh); `perl filter_CDMO.pl $file_out`; } ?>