//------------------------------------------------------------------------------
// <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>
//------------------------------------------------------------------------------

// 
// 此源代码是由 Microsoft.VSDesigner 1.1.4322.2032 版自动生成。
// 
namespace BookCommunityClient.AuthWS {
    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="AuthServiceSoap", Namespace="http://www.BookCommunity.org")]
    public class AuthService : System.Web.Services.Protocols.SoapHttpClientProtocol {
        
        /// <remarks/>
        public AuthService() {
            this.Url = "http://localhost/BookCommunityService/AuthService.asmx";
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.BookCommunity.org/GetAuthorizationTicket", RequestNamespace="http://www.BookCommunity.org", ResponseNamespace="http://www.BookCommunity.org", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public string GetAuthorizationTicket(string userName, string password) {
            object[] results = this.Invoke("GetAuthorizationTicket", new object[] {
                        userName,
                        password});
            return ((string)(results[0]));
        }
        
        /// <remarks/>
        public System.IAsyncResult BeginGetAuthorizationTicket(string userName, string password, System.AsyncCallback callback, object asyncState) {
            return this.BeginInvoke("GetAuthorizationTicket", new object[] {
                        userName,
                        password}, callback, asyncState);
        }
        
        /// <remarks/>
        public string EndGetAuthorizationTicket(System.IAsyncResult asyncResult) {
            object[] results = this.EndInvoke(asyncResult);
            return ((string)(results[0]));
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.BookCommunity.org/GetUserInfo", RequestNamespace="http://www.BookCommunity.org", ResponseNamespace="http://www.BookCommunity.org", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public UserInformation GetUserInfo(string ticket) {
            object[] results = this.Invoke("GetUserInfo", new object[] {
                        ticket});
            return ((UserInformation)(results[0]));
        }
        
        /// <remarks/>
        public System.IAsyncResult BeginGetUserInfo(string ticket, System.AsyncCallback callback, object asyncState) {
            return this.BeginInvoke("GetUserInfo", new object[] {
                        ticket}, callback, asyncState);
        }
        
        /// <remarks/>
        public UserInformation EndGetUserInfo(System.IAsyncResult asyncResult) {
            object[] results = this.EndInvoke(asyncResult);
            return ((UserInformation)(results[0]));
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.BookCommunity.org/InsertUser", RequestNamespace="http://www.BookCommunity.org", ResponseNamespace="http://www.BookCommunity.org", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public int InsertUser(UserInformation userInfo) {
            object[] results = this.Invoke("InsertUser", new object[] {
                        userInfo});
            return ((int)(results[0]));
        }
        
        /// <remarks/>
        public System.IAsyncResult BeginInsertUser(UserInformation userInfo, System.AsyncCallback callback, object asyncState) {
            return this.BeginInvoke("InsertUser", new object[] {
                        userInfo}, callback, asyncState);
        }
        
        /// <remarks/>
        public int EndInsertUser(System.IAsyncResult asyncResult) {
            object[] results = this.EndInvoke(asyncResult);
            return ((int)(results[0]));
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.BookCommunity.org/ChangePassword", RequestNamespace="http://www.BookCommunity.org", ResponseNamespace="http://www.BookCommunity.org", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public UserInformation ChangePassword(string ticket, UserInformation userInfo) {
            object[] results = this.Invoke("ChangePassword", new object[] {
                        ticket,
                        userInfo});
            return ((UserInformation)(results[0]));
        }
        
        /// <remarks/>
        public System.IAsyncResult BeginChangePassword(string ticket, UserInformation userInfo, System.AsyncCallback callback, object asyncState) {
            return this.BeginInvoke("ChangePassword", new object[] {
                        ticket,
                        userInfo}, callback, asyncState);
        }
        
        /// <remarks/>
        public UserInformation EndChangePassword(System.IAsyncResult asyncResult) {
            object[] results = this.EndInvoke(asyncResult);
            return ((UserInformation)(results[0]));
        }
    }
    
    /// <remarks/>
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.BookCommunity.org")]
    public class UserInformation {
        
        /// <remarks/>
        public int ID;
        
        /// <remarks/>
        public string RealName;
        
        /// <remarks/>
        public string UserName;
        
        /// <remarks/>
        public string Password;
        
        /// <remarks/>
        public string Address;
        
        /// <remarks/>
        public string Email;
        
        /// <remarks/>
        public string MobilePhone;
        
        /// <remarks/>
        public string HomePhone;
        
        /// <remarks/>
        public string WorkPhone;
        
        /// <remarks/>
        public string Company;
        
        /// <remarks/>
        public string CompanyAddress;
        
        /// <remarks/>
        public int Credit;
    }
}
