//------------------------------------------------------------------------------
// <autogenerated>
//     This code was generated by a tool.
//     Runtime Version: 1.1.4322.2032
//
//     Changes to this file may cause incorrect behavior and will be lost if 
//     the code is regenerated.
// </autogenerated>
//------------------------------------------------------------------------------

// 
// This source code was auto-generated by Microsoft.VSDesigner, Version 1.1.4322.2032.
// 
namespace Contact.WSCalc {
    using System.Diagnostics;
    using System.Xml.Serialization;
    using System;
    using System.Web.Services.Protocols;
    using System.ComponentModel;
    using System.Web.Services;
    
    
    /// <remarks/>
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Web.Services.WebServiceBindingAttribute(Name="CO2calcSoap", Namespace="http://calc.co2.org/")]
    public class CO2calc : System.Web.Services.Protocols.SoapHttpClientProtocol {
        
        /// <remarks/>
        public CO2calc() {
            this.Url = "http://calc.co2.org/co2calc.asmx";
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://calc.co2.org/Clients", RequestNamespace="http://calc.co2.org/", ResponseNamespace="http://calc.co2.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public System.Data.DataSet Clients() {
            object[] results = this.Invoke("Clients", new object[0]);
            return ((System.Data.DataSet)(results[0]));
        }
        
        /// <remarks/>
        public System.IAsyncResult BeginClients(System.AsyncCallback callback, object asyncState) {
            return this.BeginInvoke("Clients", new object[0], callback, asyncState);
        }
        
        /// <remarks/>
        public System.Data.DataSet EndClients(System.IAsyncResult asyncResult) {
            object[] results = this.EndInvoke(asyncResult);
            return ((System.Data.DataSet)(results[0]));
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://calc.co2.org/ClientData", RequestNamespace="http://calc.co2.org/", ResponseNamespace="http://calc.co2.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public System.Data.DataSet ClientData(string ClientCode) {
            object[] results = this.Invoke("ClientData", new object[] {
                        ClientCode});
            return ((System.Data.DataSet)(results[0]));
        }
        
        /// <remarks/>
        public System.IAsyncResult BeginClientData(string ClientCode, System.AsyncCallback callback, object asyncState) {
            return this.BeginInvoke("ClientData", new object[] {
                        ClientCode}, callback, asyncState);
        }
        
        /// <remarks/>
        public System.Data.DataSet EndClientData(System.IAsyncResult asyncResult) {
            object[] results = this.EndInvoke(asyncResult);
            return ((System.Data.DataSet)(results[0]));
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://calc.co2.org/ClientDestinations", RequestNamespace="http://calc.co2.org/", ResponseNamespace="http://calc.co2.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public System.Data.DataSet ClientDestinations(string ClientCode) {
            object[] results = this.Invoke("ClientDestinations", new object[] {
                        ClientCode});
            return ((System.Data.DataSet)(results[0]));
        }
        
        /// <remarks/>
        public System.IAsyncResult BeginClientDestinations(string ClientCode, System.AsyncCallback callback, object asyncState) {
            return this.BeginInvoke("ClientDestinations", new object[] {
                        ClientCode}, callback, asyncState);
        }
        
        /// <remarks/>
        public System.Data.DataSet EndClientDestinations(System.IAsyncResult asyncResult) {
            object[] results = this.EndInvoke(asyncResult);
            return ((System.Data.DataSet)(results[0]));
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://calc.co2.org/Calculate", RequestNamespace="http://calc.co2.org/", ResponseNamespace="http://calc.co2.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public System.Data.DataSet Calculate(string ClientCode, string Code1, string Code2) {
            object[] results = this.Invoke("Calculate", new object[] {
                        ClientCode,
                        Code1,
                        Code2});
            return ((System.Data.DataSet)(results[0]));
        }
        
        /// <remarks/>
        public System.IAsyncResult BeginCalculate(string ClientCode, string Code1, string Code2, System.AsyncCallback callback, object asyncState) {
            return this.BeginInvoke("Calculate", new object[] {
                        ClientCode,
                        Code1,
                        Code2}, callback, asyncState);
        }
        
        /// <remarks/>
        public System.Data.DataSet EndCalculate(System.IAsyncResult asyncResult) {
            object[] results = this.EndInvoke(asyncResult);
            return ((System.Data.DataSet)(results[0]));
        }
    }
}
