NASA Logo, National Aeronautics and Space Administration

Perl CDAS Web Services Example

The Coordinated Data Analysis System (CDAS) Web services allow a software developer to use portions of the CDAS software in their own application.  The following describes an example of how to utilize the CDAS Web Services from a client program written in the Perl 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.

Prerequisites

The following is required in order to execute the example program:

Example

The example Perl program is contained in the file getCdasDataFile.pl. In order to execute the program, save the getCdasDataFile.pl file to your computer where Perl is installed.

Instructions

The following instructions describe how to execute the example Perl program:
  1. On UNIX like systems:
    1. Edit the getCdasDataFile.pl file and verify that the first line of the file (the #! [shebang] line) is correct for your system's configuration.
    2. Make the file executable (chmod +x getCdasDataFile.pl).
    3. Execute the program (./getCdasDataFile.pl) and compare the output with getCdasDataFile.pl.out.
  2. On non-UNIX like systems:
    1. Execute the program (e.g., Perl getCdasDataFile.pl) using the appropriate procedure and compare the output with getCdasDataFile.pl.out.
NASA Logo - nasa.gov