⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 reference.cs

📁 短信接口及demo程序本接口专为中小型网站提供。开通简单,平台稳定
💻 CS
📖 第 1 页 / 共 2 页
字号:
//------------------------------------------------------------------------------
// <auto-generated>
//     此代码由工具生成。
//     运行库版本:2.0.50727.42
//
//     对此文件的更改可能会导致不正确的行为,并且如果
//     重新生成代码,这些更改将会丢失。
// </auto-generated>
//------------------------------------------------------------------------------

// 
// 此源代码是由 Microsoft.VSDesigner 2.0.50727.42 版自动生成。
// 
#pragma warning disable 1591

namespace SMS.cn.woxp.gateway {
    using System.Diagnostics;
    using System.Web.Services;
    using System.ComponentModel;
    using System.Web.Services.Protocols;
    using System;
    using System.Xml.Serialization;
    
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.42")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Web.Services.WebServiceBindingAttribute(Name="WebSMSSoap", Namespace="http://woxp.cn/")]
    public partial class WebSMS : System.Web.Services.Protocols.SoapHttpClientProtocol {
        
        private System.Threading.SendOrPostCallback GetErrorHintOperationCompleted;
        
        private System.Threading.SendOrPostCallback EditPWDOperationCompleted;
        
        private System.Threading.SendOrPostCallback GetIdentityMarkOperationCompleted;
        
        private System.Threading.SendOrPostCallback GetMoneyOperationCompleted;
        
        private System.Threading.SendOrPostCallback FastSendOperationCompleted;
        
        private System.Threading.SendOrPostCallback SendExOperationCompleted;
        
        private System.Threading.SendOrPostCallback SendOperationCompleted;
        
        private System.Threading.SendOrPostCallback ReadXmlOperationCompleted;
        
        private bool useDefaultCredentialsSetExplicitly;
        
        /// <remarks/>
        public WebSMS() {
            this.Url = global::SMS.Properties.Settings.Default.SMS_cn_woxp_gateway_WebSMS;
            if ((this.IsLocalFileSystemWebService(this.Url) == true)) {
                this.UseDefaultCredentials = true;
                this.useDefaultCredentialsSetExplicitly = false;
            }
            else {
                this.useDefaultCredentialsSetExplicitly = true;
            }
        }
        
        public new string Url {
            get {
                return base.Url;
            }
            set {
                if ((((this.IsLocalFileSystemWebService(base.Url) == true) 
                            && (this.useDefaultCredentialsSetExplicitly == false)) 
                            && (this.IsLocalFileSystemWebService(value) == false))) {
                    base.UseDefaultCredentials = false;
                }
                base.Url = value;
            }
        }
        
        public new bool UseDefaultCredentials {
            get {
                return base.UseDefaultCredentials;
            }
            set {
                base.UseDefaultCredentials = value;
                this.useDefaultCredentialsSetExplicitly = true;
            }
        }
        
        /// <remarks/>
        public event GetErrorHintCompletedEventHandler GetErrorHintCompleted;
        
        /// <remarks/>
        public event EditPWDCompletedEventHandler EditPWDCompleted;
        
        /// <remarks/>
        public event GetIdentityMarkCompletedEventHandler GetIdentityMarkCompleted;
        
        /// <remarks/>
        public event GetMoneyCompletedEventHandler GetMoneyCompleted;
        
        /// <remarks/>
        public event FastSendCompletedEventHandler FastSendCompleted;
        
        /// <remarks/>
        public event SendExCompletedEventHandler SendExCompleted;
        
        /// <remarks/>
        public event SendCompletedEventHandler SendCompleted;
        
        /// <remarks/>
        public event ReadXmlCompletedEventHandler ReadXmlCompleted;
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://woxp.cn/GetErrorHint", RequestNamespace="http://woxp.cn/", ResponseNamespace="http://woxp.cn/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public string GetErrorHint(int ErrorId) {
            object[] results = this.Invoke("GetErrorHint", new object[] {
                        ErrorId});
            return ((string)(results[0]));
        }
        
        /// <remarks/>
        public void GetErrorHintAsync(int ErrorId) {
            this.GetErrorHintAsync(ErrorId, null);
        }
        
        /// <remarks/>
        public void GetErrorHintAsync(int ErrorId, object userState) {
            if ((this.GetErrorHintOperationCompleted == null)) {
                this.GetErrorHintOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetErrorHintOperationCompleted);
            }
            this.InvokeAsync("GetErrorHint", new object[] {
                        ErrorId}, this.GetErrorHintOperationCompleted, userState);
        }
        
        private void OnGetErrorHintOperationCompleted(object arg) {
            if ((this.GetErrorHintCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.GetErrorHintCompleted(this, new GetErrorHintCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://woxp.cn/EditPWD", RequestNamespace="http://woxp.cn/", ResponseNamespace="http://woxp.cn/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public int EditPWD(string eid_pwd_md5, string newPwd) {
            object[] results = this.Invoke("EditPWD", new object[] {
                        eid_pwd_md5,
                        newPwd});
            return ((int)(results[0]));
        }
        
        /// <remarks/>
        public void EditPWDAsync(string eid_pwd_md5, string newPwd) {
            this.EditPWDAsync(eid_pwd_md5, newPwd, null);
        }
        
        /// <remarks/>
        public void EditPWDAsync(string eid_pwd_md5, string newPwd, object userState) {
            if ((this.EditPWDOperationCompleted == null)) {
                this.EditPWDOperationCompleted = new System.Threading.SendOrPostCallback(this.OnEditPWDOperationCompleted);
            }
            this.InvokeAsync("EditPWD", new object[] {
                        eid_pwd_md5,
                        newPwd}, this.EditPWDOperationCompleted, userState);
        }
        
        private void OnEditPWDOperationCompleted(object arg) {
            if ((this.EditPWDCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.EditPWDCompleted(this, new EditPWDCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://woxp.cn/GetIdentityMark", RequestNamespace="http://woxp.cn/", ResponseNamespace="http://woxp.cn/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public string GetIdentityMark(int Eid, string uid, string pwd, int gateId) {
            object[] results = this.Invoke("GetIdentityMark", new object[] {
                        Eid,
                        uid,
                        pwd,
                        gateId});
            return ((string)(results[0]));
        }
        
        /// <remarks/>
        public void GetIdentityMarkAsync(int Eid, string uid, string pwd, int gateId) {
            this.GetIdentityMarkAsync(Eid, uid, pwd, gateId, null);
        }
        
        /// <remarks/>
        public void GetIdentityMarkAsync(int Eid, string uid, string pwd, int gateId, object userState) {
            if ((this.GetIdentityMarkOperationCompleted == null)) {
                this.GetIdentityMarkOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetIdentityMarkOperationCompleted);
            }
            this.InvokeAsync("GetIdentityMark", new object[] {
                        Eid,
                        uid,
                        pwd,
                        gateId}, this.GetIdentityMarkOperationCompleted, userState);
        }
        
        private void OnGetIdentityMarkOperationCompleted(object arg) {
            if ((this.GetIdentityMarkCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.GetIdentityMarkCompleted(this, new GetIdentityMarkCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://woxp.cn/GetMoney", RequestNamespace="http://woxp.cn/", ResponseNamespace="http://woxp.cn/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public double GetMoney(string eid_pwd_md5) {
            object[] results = this.Invoke("GetMoney", new object[] {
                        eid_pwd_md5});
            return ((double)(results[0]));
        }
        
        /// <remarks/>
        public void GetMoneyAsync(string eid_pwd_md5) {
            this.GetMoneyAsync(eid_pwd_md5, null);
        }
        
        /// <remarks/>
        public void GetMoneyAsync(string eid_pwd_md5, object userState) {
            if ((this.GetMoneyOperationCompleted == null)) {
                this.GetMoneyOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetMoneyOperationCompleted);
            }
            this.InvokeAsync("GetMoney", new object[] {
                        eid_pwd_md5}, this.GetMoneyOperationCompleted, userState);
        }
        
        private void OnGetMoneyOperationCompleted(object arg) {
            if ((this.GetMoneyCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.GetMoneyCompleted(this, new GetMoneyCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://woxp.cn/FastSend", RequestNamespace="http://woxp.cn/", ResponseNamespace="http://woxp.cn/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public SendResult FastSend(string eid_pwd_gateId, string TargetNo, string MsgContent, string SendTime, string strSubId) {
            object[] results = this.Invoke("FastSend", new object[] {
                        eid_pwd_gateId,
                        TargetNo,
                        MsgContent,
                        SendTime,
                        strSubId});
            return ((SendResult)(results[0]));
        }
        
        /// <remarks/>
        public void FastSendAsync(string eid_pwd_gateId, string TargetNo, string MsgContent, string SendTime, string strSubId) {
            this.FastSendAsync(eid_pwd_gateId, TargetNo, MsgContent, SendTime, strSubId, null);
        }
        
        /// <remarks/>
        public void FastSendAsync(string eid_pwd_gateId, string TargetNo, string MsgContent, string SendTime, string strSubId, object userState) {
            if ((this.FastSendOperationCompleted == null)) {
                this.FastSendOperationCompleted = new System.Threading.SendOrPostCallback(this.OnFastSendOperationCompleted);
            }
            this.InvokeAsync("FastSend", new object[] {
                        eid_pwd_gateId,
                        TargetNo,
                        MsgContent,
                        SendTime,
                        strSubId}, this.FastSendOperationCompleted, userState);
        }
        
        private void OnFastSendOperationCompleted(object arg) {
            if ((this.FastSendCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.FastSendCompleted(this, new FastSendCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://woxp.cn/SendEx", RequestNamespace="http://woxp.cn/", ResponseNamespace="http://woxp.cn/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public SendResult SendEx(string eid_pwd_gateId, string TargetNo, string MsgContent, string SendTime, string strSubId) {
            object[] results = this.Invoke("SendEx", new object[] {
                        eid_pwd_gateId,
                        TargetNo,
                        MsgContent,
                        SendTime,
                        strSubId});
            return ((SendResult)(results[0]));
        }
        
        /// <remarks/>
        public void SendExAsync(string eid_pwd_gateId, string TargetNo, string MsgContent, string SendTime, string strSubId) {
            this.SendExAsync(eid_pwd_gateId, TargetNo, MsgContent, SendTime, strSubId, null);
        }
        
        /// <remarks/>
        public void SendExAsync(string eid_pwd_gateId, string TargetNo, string MsgContent, string SendTime, string strSubId, object userState) {
            if ((this.SendExOperationCompleted == null)) {
                this.SendExOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSendExOperationCompleted);
            }
            this.InvokeAsync("SendEx", new object[] {
                        eid_pwd_gateId,
                        TargetNo,
                        MsgContent,
                        SendTime,
                        strSubId}, this.SendExOperationCompleted, userState);
        }
        
        private void OnSendExOperationCompleted(object arg) {
            if ((this.SendExCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.SendExCompleted(this, new SendExCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://woxp.cn/Send", RequestNamespace="http://woxp.cn/", ResponseNamespace="http://woxp.cn/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public int Send(string eid_pwd_gateId, string TargetNo, string MsgContent, string SendTime, string strSubId) {
            object[] results = this.Invoke("Send", new object[] {
                        eid_pwd_gateId,
                        TargetNo,
                        MsgContent,
                        SendTime,
                        strSubId});
            return ((int)(results[0]));
        }
        
        /// <remarks/>
        public void SendAsync(string eid_pwd_gateId, string TargetNo, string MsgContent, string SendTime, string strSubId) {
            this.SendAsync(eid_pwd_gateId, TargetNo, MsgContent, SendTime, strSubId, null);
        }
        
        /// <remarks/>
        public void SendAsync(string eid_pwd_gateId, string TargetNo, string MsgContent, string SendTime, string strSubId, object userState) {
            if ((this.SendOperationCompleted == null)) {
                this.SendOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSendOperationCompleted);
            }
            this.InvokeAsync("Send", new object[] {
                        eid_pwd_gateId,
                        TargetNo,
                        MsgContent,
                        SendTime,
                        strSubId}, this.SendOperationCompleted, userState);
        }

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -