AwdbWebServiceSoapBinding / getForecastConfigurations
ASP AutoIt C C (Unicode) C++ C++ (Unicode) C# DataFlex Delphi Foxpro Go Java Node.js Objective-C Perl PHP Extension PowerBuilder Powershell PureBasic Python CkPython Ruby SQL Server Swift TCL VB.NET VB6 VBScript Xojo
require 'chilkat'
xml = Chilkat::CkXml.new()
xml.put_Tag("soapenv:Envelope")
xml.AddAttribute("xmlns:awd","http://www.wcc.nrcs.usda.gov/ns/awdbWebService")
xml.AddAttribute("xmlns:soapenv","http://schemas.xmlsoap.org/soap/envelope/")
xml.UpdateChildContent("soapenv:Header","")
xml.UpdateChildContent("soapenv:Body|awd:getForecastConfigurations|awd:forecaster","string")
# In a SOAP HTTP request, including the XML declaration (<?xml version="1.0" encoding="UTF-8"?>) in the XML body is generally not required.
xml.put_EmitXmlDecl(false)
soapRequestBody = xml.getXml()
endpoint = "https://wcc.sc.egov.usda.gov/awdbWebService/services"
soapAction = ""
# For SOAP requests, the standard Content-Type is usually set to "text/xml" or "application/soap+xml"
contentType = "text/xml"
http = Chilkat::CkHttp.new()
http.ClearHeaders()
http.SetRequestHeader("Content-Type",contentType)
http.SetRequestHeader("SOAPAction",soapAction)
# resp is a CkHttpResponse
resp = http.PostXml(endpoint,soapRequestBody,"utf-8")
if (http.get_LastMethodSuccess() == false)
print http.lastErrorText() + "\n";
print "Failed to send SOAP request." + "\n";
exit
end
# Get the XML response body.
responseXml = Chilkat::CkXml.new()
resp.GetBodyXml(responseXml)
statusCode = resp.get_StatusCode()
print "response status code: " + statusCode.to_s() + "\n";
# If the status code does not indicate succcess, then show the response XML,
# which probably contains error information.
if (statusCode != 200)
print responseXml.getXml() + "\n";
exit
end
print responseXml.getXml() + "\n";
# Parse the successful SOAP response XML.
# This is a sample of the response XML, but the namespace prefixes will be different.
# We can parse the result using "*" for the namespace prefixes (see below).
analysisType = responseXml.getChildContent("*:Body|*:getForecastConfigurationsResponse|*:return|*:analysisType")
calibrationEndYear = responseXml.GetChildIntValue("*:Body|*:getForecastConfigurationsResponse|*:return|*:calibrationEndYear")
calibrationStartYear = responseXml.GetChildIntValue("*:Body|*:getForecastConfigurationsResponse|*:return|*:calibrationStartYear")
comment = responseXml.getChildContent("*:Body|*:getForecastConfigurationsResponse|*:return|*:comment")
componentsToRetain = responseXml.GetChildIntValue("*:Body|*:getForecastConfigurationsResponse|*:return|*:componentsToRetain")
creationDate = responseXml.getChildContent("*:Body|*:getForecastConfigurationsResponse|*:return|*:creationDate")
dailyForecast = responseXml.getChildContent("*:Body|*:getForecastConfigurationsResponse|*:return|*:dailyForecast")
dailyForecastThreshold = responseXml.getChildContent("*:Body|*:getForecastConfigurationsResponse|*:return|*:dailyForecastThreshold")
dailyForecastThresholdRelative = responseXml.getChildContent("*:Body|*:getForecastConfigurationsResponse|*:return|*:dailyForecastThresholdRelative")
dataForcedSeriallyComplete = responseXml.getChildContent("*:Body|*:getForecastConfigurationsResponse|*:return|*:dataForcedSeriallyComplete")
degreesOfFreedom = responseXml.GetChildIntValue("*:Body|*:getForecastConfigurationsResponse|*:return|*:degreesOfFreedom")
forecastCondition = responseXml.getChildContent("*:Body|*:getForecastConfigurationsResponse|*:return|*:forecastCondition")
forecastType = responseXml.getChildContent("*:Body|*:getForecastConfigurationsResponse|*:return|*:forecastType")
forecaster = responseXml.getChildContent("*:Body|*:getForecastConfigurationsResponse|*:return|*:forecaster")
functionArgument = responseXml.getChildContent("*:Body|*:getForecastConfigurationsResponse|*:return|*:functionArgument")
functionCd = responseXml.getChildContent("*:Body|*:getForecastConfigurationsResponse|*:return|*:functionCd")
helperDataSource = responseXml.getChildContent("*:Body|*:getForecastConfigurationsResponse|*:return|*:helperDataSource")
helperElementCd = responseXml.getChildContent("*:Body|*:getForecastConfigurationsResponse|*:return|*:helperElementCd")
helperEndDay = responseXml.GetChildIntValue("*:Body|*:getForecastConfigurationsResponse|*:return|*:helperEndDay")
helperEndMonth = responseXml.GetChildIntValue("*:Body|*:getForecastConfigurationsResponse|*:return|*:helperEndMonth")
helperEndYearFlag = responseXml.getChildContent("*:Body|*:getForecastConfigurationsResponse|*:return|*:helperEndYearFlag")
helperMixedPastEndDay = responseXml.GetChildIntValue("*:Body|*:getForecastConfigurationsResponse|*:return|*:helperMixedPastEndDay")
helperMixedPastEndMonth = responseXml.GetChildIntValue("*:Body|*:getForecastConfigurationsResponse|*:return|*:helperMixedPastEndMonth")
helperMixedPastEndYearFlag = responseXml.getChildContent("*:Body|*:getForecastConfigurationsResponse|*:return|*:helperMixedPastEndYearFlag")
helperMixedPastStartDay = responseXml.GetChildIntValue("*:Body|*:getForecastConfigurationsResponse|*:return|*:helperMixedPastStartDay")
helperMixedPastStartMonth = responseXml.GetChildIntValue("*:Body|*:getForecastConfigurationsResponse|*:return|*:helperMixedPastStartMonth")
helperMixedPastStartYearFlag = responseXml.getChildContent("*:Body|*:getForecastConfigurationsResponse|*:return|*:helperMixedPastStartYearFlag")
helperPredictorUsed = responseXml.getChildContent("*:Body|*:getForecastConfigurationsResponse|*:return|*:helperPredictorUsed")
helperStartDay = responseXml.GetChildIntValue("*:Body|*:getForecastConfigurationsResponse|*:return|*:helperStartDay")
helperStartMonth = responseXml.GetChildIntValue("*:Body|*:getForecastConfigurationsResponse|*:return|*:helperStartMonth")
helperStartYearFlag = responseXml.getChildContent("*:Body|*:getForecastConfigurationsResponse|*:return|*:helperStartYearFlag")
helperStationTriplet = responseXml.getChildContent("*:Body|*:getForecastConfigurationsResponse|*:return|*:helperStationTriplet")
helperUsedInOverlappingYears = responseXml.getChildContent("*:Body|*:getForecastConfigurationsResponse|*:return|*:helperUsedInOverlappingYears")
helperVarianceMatchedToObserved = responseXml.getChildContent("*:Body|*:getForecastConfigurationsResponse|*:return|*:helperVarianceMatchedToObserved")
jackKnifingUsed = responseXml.getChildContent("*:Body|*:getForecastConfigurationsResponse|*:return|*:jackKnifingUsed")
key = responseXml.GetChildIntValue("*:Body|*:getForecastConfigurationsResponse|*:return|*:key")
minimumR2ForPredictor = responseXml.getChildContent("*:Body|*:getForecastConfigurationsResponse|*:return|*:minimumR2ForPredictor")
minimumYearsForPredictor = responseXml.GetChildIntValue("*:Body|*:getForecastConfigurationsResponse|*:return|*:minimumYearsForPredictor")
mixedPastEndDay = responseXml.GetChildIntValue("*:Body|*:getForecastConfigurationsResponse|*:return|*:mixedPastEndDay")
mixedPastEndMonth = responseXml.GetChildIntValue("*:Body|*:getForecastConfigurationsResponse|*:return|*:mixedPastEndMonth")
mixedPastEndYearFlag = responseXml.getChildContent("*:Body|*:getForecastConfigurationsResponse|*:return|*:mixedPastEndYearFlag")
mixedPastStartDay = responseXml.GetChildIntValue("*:Body|*:getForecastConfigurationsResponse|*:return|*:mixedPastStartDay")
mixedPastStartMonth = responseXml.GetChildIntValue("*:Body|*:getForecastConfigurationsResponse|*:return|*:mixedPastStartMonth")
mixedPastStartYearFlag = responseXml.getChildContent("*:Body|*:getForecastConfigurationsResponse|*:return|*:mixedPastStartYearFlag")
mixedPastUsed = responseXml.getChildContent("*:Body|*:getForecastConfigurationsResponse|*:return|*:mixedPastUsed")
name = responseXml.getChildContent("*:Body|*:getForecastConfigurationsResponse|*:return|*:name")
numYearsUsed = responseXml.GetChildIntValue("*:Body|*:getForecastConfigurationsResponse|*:return|*:numYearsUsed")
optimalWeightingUsed = responseXml.getChildContent("*:Body|*:getForecastConfigurationsResponse|*:return|*:optimalWeightingUsed")
overrideAverage = responseXml.getChildContent("*:Body|*:getForecastConfigurationsResponse|*:return|*:overrideAverage")
overrideStderr = responseXml.getChildContent("*:Body|*:getForecastConfigurationsResponse|*:return|*:overrideStderr")
pastFlowRealtime = responseXml.getChildContent("*:Body|*:getForecastConfigurationsResponse|*:return|*:pastFlowRealtime")
customStationListName = responseXml.getChildContent("*:Body|*:getForecastConfigurationsResponse|*:return|*:predictorGroups|*:customStationListName")
dataSourceCd = responseXml.getChildContent("*:Body|*:getForecastConfigurationsResponse|*:return|*:predictorGroups|*:dataSourceCd")
elementCd = responseXml.getChildContent("*:Body|*:getForecastConfigurationsResponse|*:return|*:predictorGroups|*:elementCd")
globalMonthChangeAllowed = responseXml.getChildContent("*:Body|*:getForecastConfigurationsResponse|*:return|*:predictorGroups|*:globalMonthChangeAllowed")
groupName = responseXml.getChildContent("*:Body|*:getForecastConfigurationsResponse|*:return|*:predictorGroups|*:groupName")
groupNumber = responseXml.GetChildIntValue("*:Body|*:getForecastConfigurationsResponse|*:return|*:predictorGroups|*:groupNumber")
negativeWeightAllowed = responseXml.getChildContent("*:Body|*:getForecastConfigurationsResponse|*:return|*:predictorGroups|*:negativeWeightAllowed")
networks = responseXml.getChildContent("*:Body|*:getForecastConfigurationsResponse|*:return|*:predictorGroups|*:networks")
states = responseXml.getChildContent("*:Body|*:getForecastConfigurationsResponse|*:return|*:predictorGroups|*:states")
upstreamForecast = responseXml.getChildContent("*:Body|*:getForecastConfigurationsResponse|*:return|*:predictorGroups|*:upstreamForecast")
endDay = responseXml.GetChildIntValue("*:Body|*:getForecastConfigurationsResponse|*:return|*:predictors|*:endDay")
endMonth = responseXml.GetChildIntValue("*:Body|*:getForecastConfigurationsResponse|*:return|*:predictors|*:endMonth")
endYearFlag = responseXml.getChildContent("*:Body|*:getForecastConfigurationsResponse|*:return|*:predictors|*:endYearFlag")
groupNumber = responseXml.GetChildIntValue("*:Body|*:getForecastConfigurationsResponse|*:return|*:predictors|*:groupNumber")
predictorNumber = responseXml.GetChildIntValue("*:Body|*:getForecastConfigurationsResponse|*:return|*:predictors|*:predictorNumber")
predictorUsed = responseXml.getChildContent("*:Body|*:getForecastConfigurationsResponse|*:return|*:predictors|*:predictorUsed")
startDay = responseXml.GetChildIntValue("*:Body|*:getForecastConfigurationsResponse|*:return|*:predictors|*:startDay")
startMonth = responseXml.GetChildIntValue("*:Body|*:getForecastConfigurationsResponse|*:return|*:predictors|*:startMonth")
startYearFlag = responseXml.getChildContent("*:Body|*:getForecastConfigurationsResponse|*:return|*:predictors|*:startYearFlag")
stationTriplet = responseXml.getChildContent("*:Body|*:getForecastConfigurationsResponse|*:return|*:predictors|*:stationTriplet")
preprocessingConstant = responseXml.getChildContent("*:Body|*:getForecastConfigurationsResponse|*:return|*:preprocessingConstant")
preprocessingMultiplier = responseXml.getChildContent("*:Body|*:getForecastConfigurationsResponse|*:return|*:preprocessingMultiplier")
publicationCd = responseXml.getChildContent("*:Body|*:getForecastConfigurationsResponse|*:return|*:publicationCd")
TTestLimit = responseXml.getChildContent("*:Body|*:getForecastConfigurationsResponse|*:return|*:TTestLimit")
targetDataSource = responseXml.getChildContent("*:Body|*:getForecastConfigurationsResponse|*:return|*:targetDataSource")
targetElementCd = responseXml.getChildContent("*:Body|*:getForecastConfigurationsResponse|*:return|*:targetElementCd")
targetEndDay = responseXml.GetChildIntValue("*:Body|*:getForecastConfigurationsResponse|*:return|*:targetEndDay")
targetEndMonth = responseXml.GetChildIntValue("*:Body|*:getForecastConfigurationsResponse|*:return|*:targetEndMonth")
targetEndYearFlag = responseXml.getChildContent("*:Body|*:getForecastConfigurationsResponse|*:return|*:targetEndYearFlag")
targetStartDay = responseXml.GetChildIntValue("*:Body|*:getForecastConfigurationsResponse|*:return|*:targetStartDay")
targetStartMonth = responseXml.GetChildIntValue("*:Body|*:getForecastConfigurationsResponse|*:return|*:targetStartMonth")
targetStartYearFlag = responseXml.getChildContent("*:Body|*:getForecastConfigurationsResponse|*:return|*:targetStartYearFlag")
targetStationName = responseXml.getChildContent("*:Body|*:getForecastConfigurationsResponse|*:return|*:targetStationName")
targetStationTriplet = responseXml.getChildContent("*:Body|*:getForecastConfigurationsResponse|*:return|*:targetStationTriplet")
transformErrorsOnly = responseXml.getChildContent("*:Body|*:getForecastConfigurationsResponse|*:return|*:transformErrorsOnly")
Request XML
<soapenv:Envelope xmlns:awd="http://www.wcc.nrcs.usda.gov/ns/awdbWebService" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header/>
<soapenv:Body>
<awd:getForecastConfigurations>
<awd:forecaster>string</awd:forecaster>
</awd:getForecastConfigurations>
</soapenv:Body>
</soapenv:Envelope>
Response XML
<soapenv:Envelope xmlns:awd="http://www.wcc.nrcs.usda.gov/ns/awdbWebService" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header/>
<soapenv:Body>
<awd:getForecastConfigurationsResponse>
<awd:return>
<awd:analysisType>string</awd:analysisType>
<awd:calibrationEndYear>1042</awd:calibrationEndYear>
<awd:calibrationStartYear>1042</awd:calibrationStartYear>
<awd:comment>string</awd:comment>
<awd:componentsToRetain>1042</awd:componentsToRetain>
<awd:creationDate>string</awd:creationDate>
<awd:dailyForecast>true</awd:dailyForecast>
<awd:dailyForecastThreshold>99.0</awd:dailyForecastThreshold>
<awd:dailyForecastThresholdRelative>true</awd:dailyForecastThresholdRelative>
<awd:dataForcedSeriallyComplete>true</awd:dataForcedSeriallyComplete>
<awd:degreesOfFreedom>1042</awd:degreesOfFreedom>
<awd:forecastCondition>string</awd:forecastCondition>
<awd:forecastType>string</awd:forecastType>
<awd:forecaster>string</awd:forecaster>
<awd:functionArgument>99.0</awd:functionArgument>
<awd:functionCd>string</awd:functionCd>
<awd:helperDataSource>string</awd:helperDataSource>
<awd:helperElementCd>string</awd:helperElementCd>
<awd:helperEndDay>1042</awd:helperEndDay>
<awd:helperEndMonth>1042</awd:helperEndMonth>
<awd:helperEndYearFlag>string</awd:helperEndYearFlag>
<awd:helperMixedPastEndDay>1042</awd:helperMixedPastEndDay>
<awd:helperMixedPastEndMonth>1042</awd:helperMixedPastEndMonth>
<awd:helperMixedPastEndYearFlag>string</awd:helperMixedPastEndYearFlag>
<awd:helperMixedPastStartDay>1042</awd:helperMixedPastStartDay>
<awd:helperMixedPastStartMonth>1042</awd:helperMixedPastStartMonth>
<awd:helperMixedPastStartYearFlag>string</awd:helperMixedPastStartYearFlag>
<awd:helperPredictorUsed>true</awd:helperPredictorUsed>
<awd:helperStartDay>1042</awd:helperStartDay>
<awd:helperStartMonth>1042</awd:helperStartMonth>
<awd:helperStartYearFlag>string</awd:helperStartYearFlag>
<awd:helperStationTriplet>string</awd:helperStationTriplet>
<awd:helperUsedInOverlappingYears>true</awd:helperUsedInOverlappingYears>
<awd:helperVarianceMatchedToObserved>true</awd:helperVarianceMatchedToObserved>
<awd:jackKnifingUsed>true</awd:jackKnifingUsed>
<awd:key>1042</awd:key>
<awd:minimumR2ForPredictor>99.0</awd:minimumR2ForPredictor>
<awd:minimumYearsForPredictor>1042</awd:minimumYearsForPredictor>
<awd:mixedPastEndDay>1042</awd:mixedPastEndDay>
<awd:mixedPastEndMonth>1042</awd:mixedPastEndMonth>
<awd:mixedPastEndYearFlag>string</awd:mixedPastEndYearFlag>
<awd:mixedPastStartDay>1042</awd:mixedPastStartDay>
<awd:mixedPastStartMonth>1042</awd:mixedPastStartMonth>
<awd:mixedPastStartYearFlag>string</awd:mixedPastStartYearFlag>
<awd:mixedPastUsed>true</awd:mixedPastUsed>
<awd:name>string</awd:name>
<awd:numYearsUsed>1042</awd:numYearsUsed>
<awd:optimalWeightingUsed>true</awd:optimalWeightingUsed>
<awd:overrideAverage>99.0</awd:overrideAverage>
<awd:overrideStderr>99.0</awd:overrideStderr>
<awd:pastFlowRealtime>99.0</awd:pastFlowRealtime>
<awd:predictorGroups>
<awd:customStationListName>string</awd:customStationListName>
<awd:dataSourceCd>string</awd:dataSourceCd>
<awd:elementCd>string</awd:elementCd>
<awd:globalMonthChangeAllowed>true</awd:globalMonthChangeAllowed>
<awd:groupName>string</awd:groupName>
<awd:groupNumber>1042</awd:groupNumber>
<awd:negativeWeightAllowed>true</awd:negativeWeightAllowed>
<awd:networks>string</awd:networks>
<awd:states>string</awd:states>
<awd:upstreamForecast>true</awd:upstreamForecast>
</awd:predictorGroups>
<awd:predictors>
<awd:endDay>1042</awd:endDay>
<awd:endMonth>1042</awd:endMonth>
<awd:endYearFlag>string</awd:endYearFlag>
<awd:groupNumber>1042</awd:groupNumber>
<awd:predictorNumber>1042</awd:predictorNumber>
<awd:predictorUsed>true</awd:predictorUsed>
<awd:startDay>1042</awd:startDay>
<awd:startMonth>1042</awd:startMonth>
<awd:startYearFlag>string</awd:startYearFlag>
<awd:stationTriplet>string</awd:stationTriplet>
</awd:predictors>
<awd:preprocessingConstant>99.0</awd:preprocessingConstant>
<awd:preprocessingMultiplier>99.0</awd:preprocessingMultiplier>
<awd:publicationCd>string</awd:publicationCd>
<awd:TTestLimit>99.0</awd:TTestLimit>
<awd:targetDataSource>string</awd:targetDataSource>
<awd:targetElementCd>string</awd:targetElementCd>
<awd:targetEndDay>1042</awd:targetEndDay>
<awd:targetEndMonth>1042</awd:targetEndMonth>
<awd:targetEndYearFlag>string</awd:targetEndYearFlag>
<awd:targetStartDay>1042</awd:targetStartDay>
<awd:targetStartMonth>1042</awd:targetStartMonth>
<awd:targetStartYearFlag>string</awd:targetStartYearFlag>
<awd:targetStationName>string</awd:targetStationName>
<awd:targetStationTriplet>string</awd:targetStationTriplet>
<awd:transformErrorsOnly>true</awd:transformErrorsOnly>
</awd:return>
</awd:getForecastConfigurationsResponse>
</soapenv:Body>
</soapenv:Envelope>