The Satellite Situation Center (SSC) Web services allow a software developer to use portions of the SSC software in their own application. The following describes an example of how to utilize the SSC Web Services from a client program written in the PHP programming language. This example doesn’t provide any useful, end-user functionality but is intended merely as an example for developers of client applications to examine.
The following is required in order to execute the example program:
--enable-soap
. If you are using the PHP
installation from your operating system distribution (e.g., Red Hat
Enterprise Linux), you may have to install the SOAP extension from
your distribution’s software repository (e.g., yum install
php-soap). The exact details for meeting this prerequisite vary
depending upon your PHP installation and operating system
distribution. This prerequisite is likely to require additional
prerequisites (e.g., php-xml).The example PHP program is contained in the file
WsExample.php. In order to
execute the program, save the WsExample.php
file
to your computer where PHP is installed as WsExample.php
.
The following instructions describe how to execute the example PHP program using the Command Line Interface (CLI):
Download and extract the SSC PHP WSDL classes.
Download the WsExample.php.txt
file and save
it as WsExample.php
in the same directory (folder) where the SSC
PHP class files were extracted to.
Ensure that your PHP include_path
contains the location where the
above files were put.
Run the example:
$ php WsExample.php
This should produce output similar to the following: