WaterOneFlow


Click here for a complete list of operations.

GetValuesObject

Given a site number, a variable, a start date, and an end date, this method returns a time series. Pass in the sitecode and variable in this format: 'NetworkName:SiteCode' and 'NetworkName:Variable'. Sending a null BeginDate and EndDate will return all values for the given parameters. This may not work with all services.

Test

The test form is only available for requests from the local machine.

SOAP 1.1

The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.

POST /waterOneFlow/NWIS/Groundwater.asmx HTTP/1.1
Host: water.sdsc.edu
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://www.cuahsi.org/his/1.0/ws/GetValuesObject"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <GetValuesObject xmlns="http://www.cuahsi.org/his/1.0/ws/">
      <location>string</location>
      <variable>string</variable>
      <startDate>string</startDate>
      <endDate>string</endDate>
      <authToken>string</authToken>
    </GetValuesObject>
  </soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <GetValuesObjectResponse xmlns="http://www.cuahsi.org/his/1.0/ws/">
      <timeSeriesResponse xmlns="http://www.cuahsi.org/waterML/1.0/">
        <queryInfo>
          <creationTime>dateTime</creationTime>
          <queryURL>string</queryURL>
          <querySQL>string</querySQL>
          <criteria>
            <locationParam>string</locationParam>
            <variableParam>string</variableParam>
            <timeParam xsi:nil="true" />
          </criteria>
          <locationParam>string</locationParam>
          <variableParam>string</variableParam>
          <timeParam>
            <beginDateTime>string</beginDateTime>
            <endDateTime>string</endDateTime>
          </timeParam>
          <beginDateTime>string</beginDateTime>
          <endDateTime>string</endDateTime>
          <note />
          <note />
          <extension xsi:type="type" />
        </queryInfo>
        <timeSeries>
          <sourceInfo />
          <variable>
            <variableCode xsi:nil="true" />
            <variableCode xsi:nil="true" />
            <variableName>string</variableName>
            <variableDescription>string</variableDescription>
            <valueType>Field Observation or Sample or Model Simulation Result or Derived Value or Unknown</valueType>
            <dataType>Continuous or Instantaneous or Cumulative or Incremental or Average or Maximum or Minimum or Constant Over Interval or Categorical or Best Easy Systematic Estimator  or Unknown or Variance or Median or Mode or Best Easy Systematic Estimator or Standard Deviation or Skewness or Equivalent Mean or Sporadic or Unknown</dataType>
            <generalCategory>Water Quality or Climate or Hydrology or Geology or Biota or Unknown or Instrumentation</generalCategory>
            <sampleMedium>Surface Water or Ground Water or Sediment or Soil or Air or Tissue or Precipitation or Unknown or Other or Snow or Not Relevant</sampleMedium>
            <units xsi:nil="true" />
            <options xsi:nil="true" />
            <note xsi:nil="true" />
            <note xsi:nil="true" />
            <related xsi:nil="true" />
            <parentID xsi:nil="true" />
            <relatedID xsi:nil="true" />
            <extension xsi:type="type" />
            <NoDataValue>string</NoDataValue>
            <timeSupport xsi:nil="true" />
            <unit xsi:nil="true" />
            <timeInterval>int</timeInterval>
          </variable>
          <values>
            <value xsi:nil="true" />
            <value xsi:nil="true" />
            <qualifier xsi:nil="true" />
            <qualifier xsi:nil="true" />
            <qualityControlLevel xsi:nil="true" />
            <qualityControlLevel xsi:nil="true" />
            <method xsi:nil="true" />
            <method xsi:nil="true" />
            <source xsi:nil="true" />
            <source xsi:nil="true" />
            <offset xsi:nil="true" />
            <offset xsi:nil="true" />
          </values>
        </timeSeries>
      </timeSeriesResponse>
    </GetValuesObjectResponse>
  </soap:Body>
</soap:Envelope>

SOAP 1.2

The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.

POST /waterOneFlow/NWIS/Groundwater.asmx HTTP/1.1
Host: water.sdsc.edu
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <GetValuesObject xmlns="http://www.cuahsi.org/his/1.0/ws/">
      <location>string</location>
      <variable>string</variable>
      <startDate>string</startDate>
      <endDate>string</endDate>
      <authToken>string</authToken>
    </GetValuesObject>
  </soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <GetValuesObjectResponse xmlns="http://www.cuahsi.org/his/1.0/ws/">
      <timeSeriesResponse xmlns="http://www.cuahsi.org/waterML/1.0/">
        <queryInfo>
          <creationTime>dateTime</creationTime>
          <queryURL>string</queryURL>
          <querySQL>string</querySQL>
          <criteria>
            <locationParam>string</locationParam>
            <variableParam>string</variableParam>
            <timeParam xsi:nil="true" />
          </criteria>
          <locationParam>string</locationParam>
          <variableParam>string</variableParam>
          <timeParam>
            <beginDateTime>string</beginDateTime>
            <endDateTime>string</endDateTime>
          </timeParam>
          <beginDateTime>string</beginDateTime>
          <endDateTime>string</endDateTime>
          <note />
          <note />
          <extension xsi:type="type" />
        </queryInfo>
        <timeSeries>
          <sourceInfo />
          <variable>
            <variableCode xsi:nil="true" />
            <variableCode xsi:nil="true" />
            <variableName>string</variableName>
            <variableDescription>string</variableDescription>
            <valueType>Field Observation or Sample or Model Simulation Result or Derived Value or Unknown</valueType>
            <dataType>Continuous or Instantaneous or Cumulative or Incremental or Average or Maximum or Minimum or Constant Over Interval or Categorical or Best Easy Systematic Estimator  or Unknown or Variance or Median or Mode or Best Easy Systematic Estimator or Standard Deviation or Skewness or Equivalent Mean or Sporadic or Unknown</dataType>
            <generalCategory>Water Quality or Climate or Hydrology or Geology or Biota or Unknown or Instrumentation</generalCategory>
            <sampleMedium>Surface Water or Ground Water or Sediment or Soil or Air or Tissue or Precipitation or Unknown or Other or Snow or Not Relevant</sampleMedium>
            <units xsi:nil="true" />
            <options xsi:nil="true" />
            <note xsi:nil="true" />
            <note xsi:nil="true" />
            <related xsi:nil="true" />
            <parentID xsi:nil="true" />
            <relatedID xsi:nil="true" />
            <extension xsi:type="type" />
            <NoDataValue>string</NoDataValue>
            <timeSupport xsi:nil="true" />
            <unit xsi:nil="true" />
            <timeInterval>int</timeInterval>
          </variable>
          <values>
            <value xsi:nil="true" />
            <value xsi:nil="true" />
            <qualifier xsi:nil="true" />
            <qualifier xsi:nil="true" />
            <qualityControlLevel xsi:nil="true" />
            <qualityControlLevel xsi:nil="true" />
            <method xsi:nil="true" />
            <method xsi:nil="true" />
            <source xsi:nil="true" />
            <source xsi:nil="true" />
            <offset xsi:nil="true" />
            <offset xsi:nil="true" />
          </values>
        </timeSeries>
      </timeSeriesResponse>
    </GetValuesObjectResponse>
  </soap12:Body>
</soap12:Envelope>

HTTP GET

The following is a sample HTTP GET request and response. The placeholders shown need to be replaced with actual values.

GET /waterOneFlow/NWIS/Groundwater.asmx/GetValuesObject?location=string&variable=string&startDate=string&endDate=string&authToken=string HTTP/1.1
Host: water.sdsc.edu
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<anyType xmlns="http://www.cuahsi.org/his/1.0/ws/" />