//------------------------------------------------------------------------------ // // This code was generated by a tool. // Runtime Version: 1.0.2914.16 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // //------------------------------------------------------------------------------ namespace compsoc.WeatherProxy { using System.Diagnostics; using System.Xml.Serialization; using System; using System.Web.Services.Protocols; using System.Web.Services; [System.Web.Services.WebServiceBindingAttribute(Name="WeatherRetrieverSoap", Namespace="http://tempuri.org/")] [System.Xml.Serialization.SoapIncludeAttribute(typeof(CurrentWeather))] public class WeatherRetriever : System.Web.Services.Protocols.SoapHttpClientProtocol { [System.Diagnostics.DebuggerStepThroughAttribute()] public WeatherRetriever() { this.Url = "http://www.vbws.com/services/weatherretriever.asmx"; } [System.Diagnostics.DebuggerStepThroughAttribute()] [System.Web.Services.Protocols.SoapRpcMethodAttribute("http://tempuri.org/GetTemperature")] public System.Single GetTemperature(string zipCode) { object[] results = this.Invoke("GetTemperature", new object[] { zipCode}); return ((System.Single)(results[0])); } [System.Diagnostics.DebuggerStepThroughAttribute()] public System.IAsyncResult BeginGetTemperature(string zipCode, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("GetTemperature", new object[] { zipCode}, callback, asyncState); } [System.Diagnostics.DebuggerStepThroughAttribute()] public System.Single EndGetTemperature(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((System.Single)(results[0])); } [System.Diagnostics.DebuggerStepThroughAttribute()] [System.Web.Services.Protocols.SoapRpcMethodAttribute("http://tempuri.org/GetWeather")] public CurrentWeather GetWeather(string zipCode) { object[] results = this.Invoke("GetWeather", new object[] { zipCode}); return ((CurrentWeather)(results[0])); } [System.Diagnostics.DebuggerStepThroughAttribute()] public System.IAsyncResult BeginGetWeather(string zipCode, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("GetWeather", new object[] { zipCode}, callback, asyncState); } [System.Diagnostics.DebuggerStepThroughAttribute()] public CurrentWeather EndGetWeather(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((CurrentWeather)(results[0])); } } [System.Xml.Serialization.SoapTypeAttribute("CurrentWeather", "http://tempuri.org/encodedTypes")] public class CurrentWeather { public string LastUpdated; public string IconUrl; public string Conditions; public System.Single CurrentTemp; public System.Single Humidity; public System.Single Barometer; public string BarometerDirection; } }