-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathloadStations.php
More file actions
23 lines (18 loc) · 823 Bytes
/
loadStations.php
File metadata and controls
23 lines (18 loc) · 823 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php
/**
* The following classes were generated from the WSDL using wsdl2php
* (http://sourceforge.net/projects/wsdl2php/).
*/
//Code provided by http://sscweb.gsfc.nasa.gov/WebServices/
require_once 'SatelliteSituationCenterService.php';
// SSC Web service endpoint URL
$endpoint = "http://sscweb.gsfc.nasa.gov/WS/ssc/2/SatelliteSituationCenterService?WSDL";
// Web service options
$soapOptions = array("trace" => 1,
"user_agent" => "WsExample.php PHP-SOAP/" . phpversion());
// the SSC Web service
$ssc = new SatelliteSituationCenterService($endpoint, $soapOptions);
$result = $ssc->getAllGroundStations(new getAllGroundStations());
//This is my only addition, just echo the station info in JSON form
echo json_encode($result->return);
?>