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
xml := chilkat.NewXml()
xml.SetTag("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.SetEmitXmlDecl(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.NewHttp()
http.ClearHeaders()
http.SetRequestHeader("Content-Type",contentType)
http.SetRequestHeader("SOAPAction",soapAction)
resp := http.PostXml(endpoint,*soapRequestBody,"utf-8")
if http.LastMethodSuccess() == false {
fmt.Println(http.LastErrorText())
fmt.Println("Failed to send SOAP request.")
xml.DisposeXml()
http.DisposeHttp()
return
}
// Get the XML response body.
responseXml := chilkat.NewXml()
resp.GetBodyXml(responseXml)
statusCode := resp.StatusCode()
fmt.Println("response status code: ", statusCode)
resp.DisposeHttpResponse()
// If the status code does not indicate succcess, then show the response XML,
// which probably contains error information.
if statusCode != 200 {
fmt.Println(*responseXml.GetXml())
xml.DisposeXml()
http.DisposeHttp()
responseXml.DisposeXml()
return
}
fmt.Println(*responseXml.GetXml())
// 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")
xml.DisposeXml()
http.DisposeHttp()
responseXml.DisposeXml()
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>