Welcome Guest, you are in: <root> - Login

ScrewTurn Wiki

RSS RSS

Navigation





Quick Search
»

PoweredBy

Service signatures and parameters

RSS
Modified on 2009/05/05 16:51 by david valentine Categorized as Uncategorized
There are parameters used in WaterOneFlow web services version 1.1. Four calls:
  • GetVariableInfo("VarVocab:code", "AuthToken")
  • GetSiteInfo("SiteVocab:Code", "AuthToken")
  • GetValues("SiteVocab:Code","VarVocab:code","YYYY-MM-DD","YYYY-MM-DD", "AuthToken")
  • For services with few sites,
    • GetSites(["SiteVocab:Code","SiteVocab:Code2",...], "AuthToken")

AuthToken is not presently used in CUAHSI web services. Any AuthToken is ignored, and can be null.

The variable request string is overloaded to allow for selection of a specific value
  • "vocab:code/Property=Value"
    • "vocab:code/DataType=Average"
    • "vocab:code/SampleMedium=Water/DataType=Average"

VarVocab - Variable Vocabulary, aka cvocabulary SiteVocab - Site Vocabulary, aka network

Parameters
  • ["string"] - Array
  • "String" - Single String

Methods

There are several methods in WaterOneFlow web services version 1.1.
  • Service Description
    • GetCapabilities new in v1.1
  • Descriptive Site Information (site name, location)
    • GetSitesObject, GetSites
    • GetSitesInBox new in v1.1
  • Descriptive Variable Information
    • GetVariableInfo
  • Series Information
    • GetSiteInfo
    • GetSitesInBox new in v1.1
  • Results/Values
    • GetValues
    • GetValuesForSite new in v1.1

Information Returned



WaterOneFlow 1.1
Method SiteInfoSiteCatalogVariableInfoTimeSeriesQueryInfo
GetVariableInfo(null)AllX
GetVariableInfo("VarVocab:code")All MatchedX
GetVariableInfo("VarVocab:code/Property=Value")All MatchedX
GetSites(null) All, or limited to number of records in Capabilities
GetSites(["SiteVocab:Code"])one X
GetSites(["SiteVocab:Code","SiteVocab:Code2",...]) multiple
GetSites("GEOM:BOX(w s, e n)") multiple
GetSiteInfo("SiteVocab:Code") oneXX
GetValues("SiteVocab:Code","VarVocab:code","YYYY-MM-DD","YYYY-MM-DD")one X XX
GetSitesInBox(west,south,east,north,includeSeries) Xyes, includeSeries=true\\ no, includeSeries=falseX
GetValuesForSite("SiteVocab:Code","YYYY-MM-DD","YYYY-MM-DD")one X many, one per variableX

WaterOneFlow 1.0
Method SiteInfoSiteCatalogVariableInfoTimeSeriesQueryInfo
GetVariableInfo(null)AllX
GetVariableInfo("VarVocab:code")All MatchedX
GetVariableInfo("VarVocab:code/Property=Value")All MatchedX
GetSites(null) All, or limited to number of records in Capabilities
GetSites(["SiteVocab:Code"])one X
GetSites(["SiteVocab:Code","SiteVocab:Code2",...]) multiple
GetSiteInfo("SiteVocab:Code") oneXX
GetValues("SiteVocab:Code","VarVocab:code","YYYY-MM-DD","YYYY-MM-DD")one X XX

Method Discussion

Parameters

parametertypedescription
variable stringvocabulary:vocabularyCode
locationstringnetwork:siteCode or GEOM:Point(Lat Lon) or GEOM:BOX(w s, e n)
beginDatestringiso date or dateTime as a string
endDatestringiso date or dateTime as a string
site string network:siteCode
site[]array of stringarray of network:siteCode
site[]array of stringsome services allow override to retrieve multiples GEOM:BOX(w s, e n)
west, south, east, northdecimalGeographic Coordinates for use in GetSitesInBox
includeSeriesbooleaninclude series information when calling GetSitesInBox

GetVariableInfo

  • GetVariableInfoObject returns WaterML inline
  • GetVariableInfo returns WaterML converted to string

Single Parameter, if null returns all variables Simple: GetVariableInfo("VOCABULARY:code/option/optionN", "AuthToken")
usu:999004/valueType=Field Observation/DataType=Average

Detailed Variable: GetVariableInfo("VOCABULARY:code/option/optionN", "AuthToken")
"VOCABULARY:code/option/optionN"
eg
usu:999004/valueType=Field Observation/DataType=Average

GetSites

  • GetSitesObject returns WaterML inline
  • GetSites returns WaterML converted to string

WaterOneFlow 1.0 Note.
  • GetSites returns WaterML inline
  • GetSitesXml returns WaterML converted to string

Returns all sites up to a limit (usually 50,000 records)

GetSites(null) All, or limited to number of records in Capabilities
GetSites(["SiteVocab:Code"])one
GetSites(["SiteVocab:Code","SiteVocab:Code2",...]) multiple

GetSiteInfo

  • GetSiteInfoObject returns WaterML inline
  • GetSiteInfo returns WaterML converted to string

Single Location Parameter, if null, returns SoapException(Client)

GetSiteInfo(ODM:USU-LBR-Mendon, "AuthToken")

ODM:USU-LBR-Mendon

GetSitesInBox

WaterOneFlow 1.1 only
  • GetSiteInfoObject returns WaterML inline
  • GetSiteInfo returns WaterML converted to string

Returns a list of sites, or if includeSeries=true, then also includes series information

GetSitesInBox(west,south,east,north,includeSeries)

GetSitesInBox(-180,-90,180,90,false) same as GetSites("GEOM:BOX(-180,-90,180,90)" )

GetSitesInBox(-180,-90,180,90,true) return series information for multiple sites in region

GetValues

  • GetValuesObject returns WaterML inline
  • GetValues returns WaterML converted to string

Four Parameters, plus authorization

GetValues (Location,Variable,BeginDate,EndDate, "AuthToken")

Dates can be null.
  • null beginDate translated to 1753-01-01 (earliest SQL date)
  • null endDate translated to TODAY

ODM:USU-LBR-Mendon
usu:999004/valueType=Field Observation/DataType=Average
2006-08-01
2006-08-15

Detailed GetValues MORE HERE

ScrewTurn Wiki version 3.0.1.400. Some of the icons created by FamFamFam.