//------------------------------------------------------------------------------ // // This code was generated by a tool. // Runtime Version:2.0.50727.832 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // //------------------------------------------------------------------------------ using System; using System.ComponentModel; using System.Diagnostics; using System.Web.Services; using System.Web.Services.Protocols; using System.Xml.Serialization; // // This source code was auto-generated by wsdl, Version=2.0.50727.42. // /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] [System.Web.Services.WebServiceBindingAttribute(Name="ServiceSoap", Namespace="http://tempuri.org/")] public partial class Service : System.Web.Services.Protocols.SoapHttpClientProtocol { private System.Threading.SendOrPostCallback TervitaOperationCompleted; /// public Service() { this.Url = "http://localhost:2227/veebistuudium1/Service.asmx"; } /// public event TervitaCompletedEventHandler TervitaCompleted; /// [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/Tervita", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] public string Tervita(string eesnimi) { object[] results = this.Invoke("Tervita", new object[] { eesnimi}); return ((string)(results[0])); } /// public System.IAsyncResult BeginTervita(string eesnimi, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("Tervita", new object[] { eesnimi}, callback, asyncState); } /// public string EndTervita(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((string)(results[0])); } /// public void TervitaAsync(string eesnimi) { this.TervitaAsync(eesnimi, null); } /// public void TervitaAsync(string eesnimi, object userState) { if ((this.TervitaOperationCompleted == null)) { this.TervitaOperationCompleted = new System.Threading.SendOrPostCallback(this.OnTervitaOperationCompleted); } this.InvokeAsync("Tervita", new object[] { eesnimi}, this.TervitaOperationCompleted, userState); } private void OnTervitaOperationCompleted(object arg) { if ((this.TervitaCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.TervitaCompleted(this, new TervitaCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } /// public new void CancelAsync(object userState) { base.CancelAsync(userState); } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void TervitaCompletedEventHandler(object sender, TervitaCompletedEventArgs e); /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] public partial class TervitaCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { private object[] results; internal TervitaCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : base(exception, cancelled, userState) { this.results = results; } /// public string Result { get { this.RaiseExceptionIfNecessary(); return ((string)(this.results[0])); } } }