www.pudn.com > userapp.rar > WebsCjjer.cs


//------------------------------------------------------------------------------ 
//  
//     This code was generated by a tool. 
//     Runtime Version: 1.1.4322.573 
// 
//     Changes to this file may cause incorrect behavior and will be lost if  
//     the code is regenerated. 
//  
//------------------------------------------------------------------------------ 
 
//  
// 此源代码由 wsdl, Version=1.1.4322.573 自动生成。 
//  
namespace Webs { 
    using System.Diagnostics; 
    using System.Xml.Serialization; 
    using System; 
    using System.Web.Services.Protocols; 
    using System.ComponentModel; 
    using System.Web.Services; 
     
     
    ///  
    [System.Diagnostics.DebuggerStepThroughAttribute()] 
    [System.ComponentModel.DesignerCategoryAttribute("code")] 
    [System.Web.Services.WebServiceBindingAttribute(Name="WebsCjjerSoap", Namespace="http://www.cjjer.com/webs/")] 
    public class WebsCjjer : System.Web.Services.Protocols.SoapHttpClientProtocol { 
         
        ///  
        public WebsCjjer() { 
            string urlSetting = System.Configuration.ConfigurationSettings.AppSettings["WebsUser"]; 
            if ((urlSetting != null)) { 
                this.Url = urlSetting; 
            } 
            else { 
                this.Url = "http://s:81/userapp/login.asmx"; 
            } 
        } 
         
        ///  
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.cjjer.com/webs/Login", RequestNamespace="http://www.cjjer.com/webs/", ResponseNamespace="http://www.cjjer.com/webs/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] 
        public int Login(string UserName, string UserPassword) { 
            object[] results = this.Invoke("Login", new object[] { 
                        UserName, 
                        UserPassword}); 
            return ((int)(results[0])); 
        } 
         
        ///  
        public System.IAsyncResult BeginLogin(string UserName, string UserPassword, System.AsyncCallback callback, object asyncState) { 
            return this.BeginInvoke("Login", new object[] { 
                        UserName, 
                        UserPassword}, callback, asyncState); 
        } 
         
        ///  
        public int EndLogin(System.IAsyncResult asyncResult) { 
            object[] results = this.EndInvoke(asyncResult); 
            return ((int)(results[0])); 
        } 
         
        ///  
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.cjjer.com/webs/AddNew", RequestNamespace="http://www.cjjer.com/webs/", ResponseNamespace="http://www.cjjer.com/webs/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] 
        public int AddNew(string UserName, string UserPassword) { 
            object[] results = this.Invoke("AddNew", new object[] { 
                        UserName, 
                        UserPassword}); 
            return ((int)(results[0])); 
        } 
         
        ///  
        public System.IAsyncResult BeginAddNew(string UserName, string UserPassword, System.AsyncCallback callback, object asyncState) { 
            return this.BeginInvoke("AddNew", new object[] { 
                        UserName, 
                        UserPassword}, callback, asyncState); 
        } 
         
        ///  
        public int EndAddNew(System.IAsyncResult asyncResult) { 
            object[] results = this.EndInvoke(asyncResult); 
            return ((int)(results[0])); 
        } 
    } 
}