//------------------------------------------------------------------------------ // // 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="TeenusedSoap", Namespace="http://tempuri.org/")] public partial class Teenused : System.Web.Services.Protocols.SoapHttpClientProtocol { private System.Threading.SendOrPostCallback HelloWorldOperationCompleted; private System.Threading.SendOrPostCallback TervitaOperationCompleted; private System.Threading.SendOrPostCallback TellimusteLoeteluOperationCompleted; private System.Threading.SendOrPostCallback TellimuseAndmedOperationCompleted; /// public Teenused() { this.Url = "http://localhost:2019/pood07/Teenused.asmx"; } /// public event HelloWorldCompletedEventHandler HelloWorldCompleted; /// public event TervitaCompletedEventHandler TervitaCompleted; /// public event TellimusteLoeteluCompletedEventHandler TellimusteLoeteluCompleted; /// public event TellimuseAndmedCompletedEventHandler TellimuseAndmedCompleted; /// [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/HelloWorld", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] public string HelloWorld() { object[] results = this.Invoke("HelloWorld", new object[0]); return ((string)(results[0])); } /// public System.IAsyncResult BeginHelloWorld(System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("HelloWorld", new object[0], callback, asyncState); } /// public string EndHelloWorld(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((string)(results[0])); } /// public void HelloWorldAsync() { this.HelloWorldAsync(null); } /// public void HelloWorldAsync(object userState) { if ((this.HelloWorldOperationCompleted == null)) { this.HelloWorldOperationCompleted = new System.Threading.SendOrPostCallback(this.OnHelloWorldOperationCompleted); } this.InvokeAsync("HelloWorld", new object[0], this.HelloWorldOperationCompleted, userState); } private void OnHelloWorldOperationCompleted(object arg) { if ((this.HelloWorldCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.HelloWorldCompleted(this, new HelloWorldCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } /// [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)); } } /// [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/TellimusteLoetelu", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] public int[] TellimusteLoetelu() { object[] results = this.Invoke("TellimusteLoetelu", new object[0]); return ((int[])(results[0])); } /// public System.IAsyncResult BeginTellimusteLoetelu(System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("TellimusteLoetelu", new object[0], callback, asyncState); } /// public int[] EndTellimusteLoetelu(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((int[])(results[0])); } /// public void TellimusteLoeteluAsync() { this.TellimusteLoeteluAsync(null); } /// public void TellimusteLoeteluAsync(object userState) { if ((this.TellimusteLoeteluOperationCompleted == null)) { this.TellimusteLoeteluOperationCompleted = new System.Threading.SendOrPostCallback(this.OnTellimusteLoeteluOperationCompleted); } this.InvokeAsync("TellimusteLoetelu", new object[0], this.TellimusteLoeteluOperationCompleted, userState); } private void OnTellimusteLoeteluOperationCompleted(object arg) { if ((this.TellimusteLoeteluCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.TellimusteLoeteluCompleted(this, new TellimusteLoeteluCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } /// [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/TellimuseAndmed", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] public string TellimuseAndmed(int TellimuseID) { object[] results = this.Invoke("TellimuseAndmed", new object[] { TellimuseID}); return ((string)(results[0])); } /// public System.IAsyncResult BeginTellimuseAndmed(int TellimuseID, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("TellimuseAndmed", new object[] { TellimuseID}, callback, asyncState); } /// public string EndTellimuseAndmed(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((string)(results[0])); } /// public void TellimuseAndmedAsync(int TellimuseID) { this.TellimuseAndmedAsync(TellimuseID, null); } /// public void TellimuseAndmedAsync(int TellimuseID, object userState) { if ((this.TellimuseAndmedOperationCompleted == null)) { this.TellimuseAndmedOperationCompleted = new System.Threading.SendOrPostCallback(this.OnTellimuseAndmedOperationCompleted); } this.InvokeAsync("TellimuseAndmed", new object[] { TellimuseID}, this.TellimuseAndmedOperationCompleted, userState); } private void OnTellimuseAndmedOperationCompleted(object arg) { if ((this.TellimuseAndmedCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.TellimuseAndmedCompleted(this, new TellimuseAndmedCompletedEventArgs(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 HelloWorldCompletedEventHandler(object sender, HelloWorldCompletedEventArgs e); /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] public partial class HelloWorldCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { private object[] results; internal HelloWorldCompletedEventArgs(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])); } } } /// [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])); } } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void TellimusteLoeteluCompletedEventHandler(object sender, TellimusteLoeteluCompletedEventArgs e); /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] public partial class TellimusteLoeteluCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { private object[] results; internal TellimusteLoeteluCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : base(exception, cancelled, userState) { this.results = results; } /// public int[] Result { get { this.RaiseExceptionIfNecessary(); return ((int[])(this.results[0])); } } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void TellimuseAndmedCompletedEventHandler(object sender, TellimuseAndmedCompletedEventArgs e); /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] public partial class TellimuseAndmedCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { private object[] results; internal TellimuseAndmedCompletedEventArgs(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])); } } }