This perl program is a SOAP server intended to demonstrate SOAP web services for providing Ocean Observing System Data.
On this site, the data is encoded as constants in this file.
This program could be installed at different sites and modified to serve data from other sources.
perl "-MSOAP::Lite service=>'http://sura-vims-pe6600-1.vims.edu/~drf/cgi-bin/oostech.cgi?wsdl'" -le "print getLatest('salinity')"
perl "-MSOAP::Lite service=>'http://sura-vims-pe6600-1.vims.edu/~drf/cgi-bin/oostech.cgi?wsdl'" -le "print getLatest('windspeed')"
perl "-MSOAP::Lite service=>'http://sura-vims-pe6600-1.vims.edu/~drf/cgi-bin/oostech.cgi?wsdl'" -le "print xmlGetLatest('salinity')"
perl "-MSOAP::Lite service=>'http://sura-vims-pe6600-1.vims.edu/~drf/cgi-bin/oostech.cgi?wsdl'" -le "print xmlGetLatest('datetime')"
perl "-MSOAP::Lite service=>'http://sura-vims-pe6600-1.vims.edu/~drf/cgi-bin/oostech.cgi?wsdl'" -le "print xmlGetLatest('winddirection')"
perl "-MSOAP::Lite service=>'http://sura-vims-pe6600-1.vims.edu/~drf/cgi-bin/oostech.cgi?wsdl'" -le "print xmlGetLatest('windspeed')"
perl "-MSOAP::Lite service=>'http://sura-vims-pe6600-1.vims.edu/~drf/cgi-bin/oostech.cgi?wsdl'" -le "print xmlGetLatest('temperature')"
perl "-MSOAP::Lite service=>'http://sura-vims-pe6600-1.vims.edu/~drf/cgi-bin/oostech.cgi?wsdl'" -le "print hi()"
perl "-MSOAP::Lite service=>'http://sura-vims-pe6600-1.vims.edu/~drf/cgi-bin/oostech.cgi?wsdl'" -le "print bye()"
perl "-MSOAP::Lite service=>'http://sura-vims-pe6600-1.vims.edu/~drf/cgi-bin/oostech.cgi?wsdl'" -le "print wsdl()"
perl "-MSOAP::Lite service=>'http://sura-vims-pe6600-1.vims.edu/~drf/cgi-bin/oostech.cgi?wsdl'" -le "print xmlGetLatestEasyOBJ('salinity')"
#!perl -w
use SOAP::Lite;
print SOAP::Lite
-> uri('http://sura-vims-pe6600-1.vims.edu/Demo')
-> proxy('http://sura-vims-pe6600-1.vims.edu/~drf/cgi-bin/oostech.cgi')
-> getLatest('salinity')
-> result;
wsdlURL='http://sura-vims-pe6600-1.vims.edu/~drf/cgi-bin/oostech.cgi?wsdl' className = createClassFromWsdl(wsdlURL) oostechService = myServiceHandlerService help getLatest getLatest(oostechService,'salinity','bbox')
# Get the R SOAP interface:
# install.packages(c('RCURL',SSOAP'),repos='http://www.omegahat.org/R')
library(SSOAP)
sserver<-SOAPServer("sura-vims-pe6600-1.vims.edu", "~drf/cgi-bin/oostech.cgi")
.SOAP(sserver,"getLatest", c('salinity'),
action=("http://sura-vims-pe6600-1.vims.edu/Demo"))
Additionally, this program also acts as a cgi server that will serve the latest salinity data as:
This code was written using the following references: