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

// 
// 这个源代码是由 wsdl，Version=1.0.3705.0 自动产生。
// 
namespace DBService_cs {
    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="DBSrcSoap", Namespace="http://tempuri.org/")]
    public class DBSrc : System.Web.Services.Protocols.SoapHttpClientProtocol {
        
        /// <remarks/>
        public DBSrc() {
            this.Url = "http://localhost/aspnetdata/ch13/13-2/cs/DBSrc.asmx";
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/GetSQLData", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public System.Data.DataSet GetSQLData(string ServerName, string uid, string Password, string DBName, string TBName) {
            object[] results = this.Invoke("GetSQLData", new object[] {
                        ServerName,
                        uid,
                        Password,
                        DBName,
                        TBName});
            return ((System.Data.DataSet)(results[0]));
        }
        
        /// <remarks/>
        public System.IAsyncResult BeginGetSQLData(string ServerName, string uid, string Password, string DBName, string TBName, System.AsyncCallback callback, object asyncState) {
            return this.BeginInvoke("GetSQLData", new object[] {
                        ServerName,
                        uid,
                        Password,
                        DBName,
                        TBName}, callback, asyncState);
        }
        
        /// <remarks/>
        public System.Data.DataSet EndGetSQLData(System.IAsyncResult asyncResult) {
            object[] results = this.EndInvoke(asyncResult);
            return ((System.Data.DataSet)(results[0]));
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/SaveSQLData", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public bool SaveSQLData(System.Data.DataSet DS, string ServerName, string uid, string Password, string DBName, string TBName) {
            object[] results = this.Invoke("SaveSQLData", new object[] {
                        DS,
                        ServerName,
                        uid,
                        Password,
                        DBName,
                        TBName});
            return ((bool)(results[0]));
        }
        
        /// <remarks/>
        public System.IAsyncResult BeginSaveSQLData(System.Data.DataSet DS, string ServerName, string uid, string Password, string DBName, string TBName, System.AsyncCallback callback, object asyncState) {
            return this.BeginInvoke("SaveSQLData", new object[] {
                        DS,
                        ServerName,
                        uid,
                        Password,
                        DBName,
                        TBName}, callback, asyncState);
        }
        
        /// <remarks/>
        public bool EndSaveSQLData(System.IAsyncResult asyncResult) {
            object[] results = this.EndInvoke(asyncResult);
            return ((bool)(results[0]));
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/GetACCData", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public System.Data.DataSet GetACCData(string TBName) {
            object[] results = this.Invoke("GetACCData", new object[] {
                        TBName});
            return ((System.Data.DataSet)(results[0]));
        }
        
        /// <remarks/>
        public System.IAsyncResult BeginGetACCData(string TBName, System.AsyncCallback callback, object asyncState) {
            return this.BeginInvoke("GetACCData", new object[] {
                        TBName}, callback, asyncState);
        }
        
        /// <remarks/>
        public System.Data.DataSet EndGetACCData(System.IAsyncResult asyncResult) {
            object[] results = this.EndInvoke(asyncResult);
            return ((System.Data.DataSet)(results[0]));
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/SaveACCData", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public bool SaveACCData(System.Data.DataSet DS, string TBName) {
            object[] results = this.Invoke("SaveACCData", new object[] {
                        DS,
                        TBName});
            return ((bool)(results[0]));
        }
        
        /// <remarks/>
        public System.IAsyncResult BeginSaveACCData(System.Data.DataSet DS, string TBName, System.AsyncCallback callback, object asyncState) {
            return this.BeginInvoke("SaveACCData", new object[] {
                        DS,
                        TBName}, callback, asyncState);
        }
        
        /// <remarks/>
        public bool EndSaveACCData(System.IAsyncResult asyncResult) {
            object[] results = this.EndInvoke(asyncResult);
            return ((bool)(results[0]));
        }
    }
}
