root/docs/usc/nautilus/usr2/prod/buoys/perl/xenia/getServiceNI.php

Revision 115 (checked in by jcothran, 5 years ago)

--

Line 
1 <?php
2 require_once('/usr2/prod/buoys/perl/xml/nusoap/lib/nusoap.php');
3
4 $wsdl=new soapclient('http://cdmo.baruch.sc.edu/webservices/xmldatarequest.cfc?wsdl');
5
6 #echo $wsdl->call('exportSingleParamXML',array('tbl'=>'niwolwq','numrecs'=>'4','param'=>'Temp'));
7 #echo 'Single Parameter Response: <xmp>'.$wsdl->response.'</xmp>';
8
9 //remember to include this same station list in the perl processing xml to sql file
10 $station_list = array('niwolmet','niwolwq');
11
12 foreach ($station_list as $station_id) {
13 //echo $station_id;
14
15 //8 records at one every 15 minutes will give us past 2 hours of data
16 $wsdl->call('exportAllParamsXML',array('tbl'=>$station_id,'numrecs'=>'8'));
17 #echo 'All Parameter Response: <xmp>'.$wsdl->response.'</xmp>';
18
19 $file_out = 'tmp/cdmo_'.$station_id.'.txt';
20 $fh = fopen($file_out, 'w') or die("can't open file");
21 fwrite($fh, $wsdl->response);
22 fclose($fh);
23
24 }
25
26 ?>
27
Note: See TracBrowser for help on using the browser.