|
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 |
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 |
$station_list = array('niwolmet','niwolwq'); |
|---|
| 11 |
|
|---|
| 12 |
foreach ($station_list as $station_id) { |
|---|
| 13 |
|
|---|
| 14 |
|
|---|
| 15 |
|
|---|
| 16 |
$wsdl->call('exportAllParamsXML',array('tbl'=>$station_id,'numrecs'=>'8')); |
|---|
| 17 |
|
|---|
| 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 |
|
|---|