SOAP WSDL Generate Code

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
Chilkat.Xml xml = new Chilkat.Xml();
xml.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.EmitXmlDecl = false;
string soapRequestBody = xml.GetXml();

string endpoint = "https://wcc.sc.egov.usda.gov/awdbWebService/services";
string soapAction = "";
//  For SOAP requests, the standard Content-Type is usually set to "text/xml" or "application/soap+xml"
string contentType = "text/xml";

Chilkat.Http http = new Chilkat.Http();

http.ClearHeaders();
http.SetRequestHeader("Content-Type",contentType);
http.SetRequestHeader("SOAPAction",soapAction);

Chilkat.HttpResponse resp = http.PostXml(endpoint,soapRequestBody,"utf-8");
if (http.LastMethodSuccess == false) {
    Debug.WriteLine(http.LastErrorText);
    Debug.WriteLine("Failed to send SOAP request.");
    return;
}

// Get the XML response body.
Chilkat.Xml responseXml = new Chilkat.Xml();
resp.GetBodyXml(responseXml);

int statusCode = resp.StatusCode;
Debug.WriteLine("response status code: " + Convert.ToString(statusCode));

// If the status code does not indicate succcess, then show the response XML,
// which probably contains error information.
if (statusCode != 200) {
    Debug.WriteLine(responseXml.GetXml());
    return;
}

Debug.WriteLine(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).

string analysisType = responseXml.GetChildContent("*:Body|*:getForecastConfigurationsResponse|*:return|*:analysisType");
int calibrationEndYear = responseXml.GetChildIntValue("*:Body|*:getForecastConfigurationsResponse|*:return|*:calibrationEndYear");
int calibrationStartYear = responseXml.GetChildIntValue("*:Body|*:getForecastConfigurationsResponse|*:return|*:calibrationStartYear");
string comment = responseXml.GetChildContent("*:Body|*:getForecastConfigurationsResponse|*:return|*:comment");
int componentsToRetain = responseXml.GetChildIntValue("*:Body|*:getForecastConfigurationsResponse|*:return|*:componentsToRetain");
string creationDate = responseXml.GetChildContent("*:Body|*:getForecastConfigurationsResponse|*:return|*:creationDate");
string dailyForecast = responseXml.GetChildContent("*:Body|*:getForecastConfigurationsResponse|*:return|*:dailyForecast");
string dailyForecastThreshold = responseXml.GetChildContent("*:Body|*:getForecastConfigurationsResponse|*:return|*:dailyForecastThreshold");
string dailyForecastThresholdRelative = responseXml.GetChildContent("*:Body|*:getForecastConfigurationsResponse|*:return|*:dailyForecastThresholdRelative");
string dataForcedSeriallyComplete = responseXml.GetChildContent("*:Body|*:getForecastConfigurationsResponse|*:return|*:dataForcedSeriallyComplete");
int degreesOfFreedom = responseXml.GetChildIntValue("*:Body|*:getForecastConfigurationsResponse|*:return|*:degreesOfFreedom");
string forecastCondition = responseXml.GetChildContent("*:Body|*:getForecastConfigurationsResponse|*:return|*:forecastCondition");
string forecastType = responseXml.GetChildContent("*:Body|*:getForecastConfigurationsResponse|*:return|*:forecastType");
string forecaster = responseXml.GetChildContent("*:Body|*:getForecastConfigurationsResponse|*:return|*:forecaster");
string functionArgument = responseXml.GetChildContent("*:Body|*:getForecastConfigurationsResponse|*:return|*:functionArgument");
string functionCd = responseXml.GetChildContent("*:Body|*:getForecastConfigurationsResponse|*:return|*:functionCd");
string helperDataSource = responseXml.GetChildContent("*:Body|*:getForecastConfigurationsResponse|*:return|*:helperDataSource");
string helperElementCd = responseXml.GetChildContent("*:Body|*:getForecastConfigurationsResponse|*:return|*:helperElementCd");
int helperEndDay = responseXml.GetChildIntValue("*:Body|*:getForecastConfigurationsResponse|*:return|*:helperEndDay");
int helperEndMonth = responseXml.GetChildIntValue("*:Body|*:getForecastConfigurationsResponse|*:return|*:helperEndMonth");
string helperEndYearFlag = responseXml.GetChildContent("*:Body|*:getForecastConfigurationsResponse|*:return|*:helperEndYearFlag");
int helperMixedPastEndDay = responseXml.GetChildIntValue("*:Body|*:getForecastConfigurationsResponse|*:return|*:helperMixedPastEndDay");
int helperMixedPastEndMonth = responseXml.GetChildIntValue("*:Body|*:getForecastConfigurationsResponse|*:return|*:helperMixedPastEndMonth");
string helperMixedPastEndYearFlag = responseXml.GetChildContent("*:Body|*:getForecastConfigurationsResponse|*:return|*:helperMixedPastEndYearFlag");
int helperMixedPastStartDay = responseXml.GetChildIntValue("*:Body|*:getForecastConfigurationsResponse|*:return|*:helperMixedPastStartDay");
int helperMixedPastStartMonth = responseXml.GetChildIntValue("*:Body|*:getForecastConfigurationsResponse|*:return|*:helperMixedPastStartMonth");
string helperMixedPastStartYearFlag = responseXml.GetChildContent("*:Body|*:getForecastConfigurationsResponse|*:return|*:helperMixedPastStartYearFlag");
string helperPredictorUsed = responseXml.GetChildContent("*:Body|*:getForecastConfigurationsResponse|*:return|*:helperPredictorUsed");
int helperStartDay = responseXml.GetChildIntValue("*:Body|*:getForecastConfigurationsResponse|*:return|*:helperStartDay");
int helperStartMonth = responseXml.GetChildIntValue("*:Body|*:getForecastConfigurationsResponse|*:return|*:helperStartMonth");
string helperStartYearFlag = responseXml.GetChildContent("*:Body|*:getForecastConfigurationsResponse|*:return|*:helperStartYearFlag");
string helperStationTriplet = responseXml.GetChildContent("*:Body|*:getForecastConfigurationsResponse|*:return|*:helperStationTriplet");
string helperUsedInOverlappingYears = responseXml.GetChildContent("*:Body|*:getForecastConfigurationsResponse|*:return|*:helperUsedInOverlappingYears");
string helperVarianceMatchedToObserved = responseXml.GetChildContent("*:Body|*:getForecastConfigurationsResponse|*:return|*:helperVarianceMatchedToObserved");
string jackKnifingUsed = responseXml.GetChildContent("*:Body|*:getForecastConfigurationsResponse|*:return|*:jackKnifingUsed");
int key = responseXml.GetChildIntValue("*:Body|*:getForecastConfigurationsResponse|*:return|*:key");
string minimumR2ForPredictor = responseXml.GetChildContent("*:Body|*:getForecastConfigurationsResponse|*:return|*:minimumR2ForPredictor");
int minimumYearsForPredictor = responseXml.GetChildIntValue("*:Body|*:getForecastConfigurationsResponse|*:return|*:minimumYearsForPredictor");
int mixedPastEndDay = responseXml.GetChildIntValue("*:Body|*:getForecastConfigurationsResponse|*:return|*:mixedPastEndDay");
int mixedPastEndMonth = responseXml.GetChildIntValue("*:Body|*:getForecastConfigurationsResponse|*:return|*:mixedPastEndMonth");
string mixedPastEndYearFlag = responseXml.GetChildContent("*:Body|*:getForecastConfigurationsResponse|*:return|*:mixedPastEndYearFlag");
int mixedPastStartDay = responseXml.GetChildIntValue("*:Body|*:getForecastConfigurationsResponse|*:return|*:mixedPastStartDay");
int mixedPastStartMonth = responseXml.GetChildIntValue("*:Body|*:getForecastConfigurationsResponse|*:return|*:mixedPastStartMonth");
string mixedPastStartYearFlag = responseXml.GetChildContent("*:Body|*:getForecastConfigurationsResponse|*:return|*:mixedPastStartYearFlag");
string mixedPastUsed = responseXml.GetChildContent("*:Body|*:getForecastConfigurationsResponse|*:return|*:mixedPastUsed");
string name = responseXml.GetChildContent("*:Body|*:getForecastConfigurationsResponse|*:return|*:name");
int numYearsUsed = responseXml.GetChildIntValue("*:Body|*:getForecastConfigurationsResponse|*:return|*:numYearsUsed");
string optimalWeightingUsed = responseXml.GetChildContent("*:Body|*:getForecastConfigurationsResponse|*:return|*:optimalWeightingUsed");
string overrideAverage = responseXml.GetChildContent("*:Body|*:getForecastConfigurationsResponse|*:return|*:overrideAverage");
string overrideStderr = responseXml.GetChildContent("*:Body|*:getForecastConfigurationsResponse|*:return|*:overrideStderr");
string pastFlowRealtime = responseXml.GetChildContent("*:Body|*:getForecastConfigurationsResponse|*:return|*:pastFlowRealtime");
string customStationListName = responseXml.GetChildContent("*:Body|*:getForecastConfigurationsResponse|*:return|*:predictorGroups|*:customStationListName");
string dataSourceCd = responseXml.GetChildContent("*:Body|*:getForecastConfigurationsResponse|*:return|*:predictorGroups|*:dataSourceCd");
string elementCd = responseXml.GetChildContent("*:Body|*:getForecastConfigurationsResponse|*:return|*:predictorGroups|*:elementCd");
string globalMonthChangeAllowed = responseXml.GetChildContent("*:Body|*:getForecastConfigurationsResponse|*:return|*:predictorGroups|*:globalMonthChangeAllowed");
string groupName = responseXml.GetChildContent("*:Body|*:getForecastConfigurationsResponse|*:return|*:predictorGroups|*:groupName");
int groupNumber = responseXml.GetChildIntValue("*:Body|*:getForecastConfigurationsResponse|*:return|*:predictorGroups|*:groupNumber");
string negativeWeightAllowed = responseXml.GetChildContent("*:Body|*:getForecastConfigurationsResponse|*:return|*:predictorGroups|*:negativeWeightAllowed");
string networks = responseXml.GetChildContent("*:Body|*:getForecastConfigurationsResponse|*:return|*:predictorGroups|*:networks");
string states = responseXml.GetChildContent("*:Body|*:getForecastConfigurationsResponse|*:return|*:predictorGroups|*:states");
string upstreamForecast = responseXml.GetChildContent("*:Body|*:getForecastConfigurationsResponse|*:return|*:predictorGroups|*:upstreamForecast");
int endDay = responseXml.GetChildIntValue("*:Body|*:getForecastConfigurationsResponse|*:return|*:predictors|*:endDay");
int endMonth = responseXml.GetChildIntValue("*:Body|*:getForecastConfigurationsResponse|*:return|*:predictors|*:endMonth");
string endYearFlag = responseXml.GetChildContent("*:Body|*:getForecastConfigurationsResponse|*:return|*:predictors|*:endYearFlag");
groupNumber = responseXml.GetChildIntValue("*:Body|*:getForecastConfigurationsResponse|*:return|*:predictors|*:groupNumber");
int predictorNumber = responseXml.GetChildIntValue("*:Body|*:getForecastConfigurationsResponse|*:return|*:predictors|*:predictorNumber");
string predictorUsed = responseXml.GetChildContent("*:Body|*:getForecastConfigurationsResponse|*:return|*:predictors|*:predictorUsed");
int startDay = responseXml.GetChildIntValue("*:Body|*:getForecastConfigurationsResponse|*:return|*:predictors|*:startDay");
int startMonth = responseXml.GetChildIntValue("*:Body|*:getForecastConfigurationsResponse|*:return|*:predictors|*:startMonth");
string startYearFlag = responseXml.GetChildContent("*:Body|*:getForecastConfigurationsResponse|*:return|*:predictors|*:startYearFlag");
string stationTriplet = responseXml.GetChildContent("*:Body|*:getForecastConfigurationsResponse|*:return|*:predictors|*:stationTriplet");
string preprocessingConstant = responseXml.GetChildContent("*:Body|*:getForecastConfigurationsResponse|*:return|*:preprocessingConstant");
string preprocessingMultiplier = responseXml.GetChildContent("*:Body|*:getForecastConfigurationsResponse|*:return|*:preprocessingMultiplier");
string publicationCd = responseXml.GetChildContent("*:Body|*:getForecastConfigurationsResponse|*:return|*:publicationCd");
string TTestLimit = responseXml.GetChildContent("*:Body|*:getForecastConfigurationsResponse|*:return|*:TTestLimit");
string targetDataSource = responseXml.GetChildContent("*:Body|*:getForecastConfigurationsResponse|*:return|*:targetDataSource");
string targetElementCd = responseXml.GetChildContent("*:Body|*:getForecastConfigurationsResponse|*:return|*:targetElementCd");
int targetEndDay = responseXml.GetChildIntValue("*:Body|*:getForecastConfigurationsResponse|*:return|*:targetEndDay");
int targetEndMonth = responseXml.GetChildIntValue("*:Body|*:getForecastConfigurationsResponse|*:return|*:targetEndMonth");
string targetEndYearFlag = responseXml.GetChildContent("*:Body|*:getForecastConfigurationsResponse|*:return|*:targetEndYearFlag");
int targetStartDay = responseXml.GetChildIntValue("*:Body|*:getForecastConfigurationsResponse|*:return|*:targetStartDay");
int targetStartMonth = responseXml.GetChildIntValue("*:Body|*:getForecastConfigurationsResponse|*:return|*:targetStartMonth");
string targetStartYearFlag = responseXml.GetChildContent("*:Body|*:getForecastConfigurationsResponse|*:return|*:targetStartYearFlag");
string targetStationName = responseXml.GetChildContent("*:Body|*:getForecastConfigurationsResponse|*:return|*:targetStationName");
string targetStationTriplet = responseXml.GetChildContent("*:Body|*:getForecastConfigurationsResponse|*:return|*:targetStationTriplet");
string 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>