protected void Page_Load(object sender, EventArgs e)
        {
            ////返回值
            //int returnValue = 0;
            ////执行行数
            //int effective = 0;
            //effective = DbHelperSQL.RunProcedure("[up_User_To_Engine]", null, out returnValue);

            #region 短信发送
            //定义请求头
            HuaXiaSms.RequestSoapHeader RequestHeader = new HuaXiaSms.RequestSoapHeader();
            string timeSpan = DateTime.Now.ToString("yyyyMMddHHmmss");
            string userName = "******";
            string password = "******";
            RequestHeader.UserName = userName;
            RequestHeader.Password = EncodePassword(userName, password, timeSpan);
            RequestHeader.Timestamp = timeSpan;

            //定义请求体
            HuaXiaSms.SM_MT SmMt = new HuaXiaSms.SM_MT();
            SmMt.Channel = 21;
            SmMt.ChannelSpecified = true;
            SmMt.Mobile = "18620426114;13430239925";
            SmMt.Content = "领导您好,我们正在与河南华夏公司商谈短信接口合作项目。有任何进展会及时与您联系。【八七工作室】";
            SmMt.SendTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
            SmMt.SeqID = 1001;
            SmMt.SubCode = "87studio";

            //定义返回头实体
            HuaXiaSms.ResponseSoapHeader ResponseHeader = new HuaXiaSms.ResponseSoapHeader();

            //定义返回实体
            HuaXiaSms.SM_MT_Result SmMtResult = new HuaXiaSms.SM_MT_Result();

            //定义客户的服务
            HuaXiaSms.smsServiceClient Sms = new HuaXiaSms.smsServiceClient("smsService");
            //开始请求
            ResponseHeader = Sms.SendSMS(RequestHeader, SmMt, out SmMtResult);



            #endregion

        }
        /// <summary>
        /// 华夏接口发送短信
        /// </summary>
        /// <param name="Phones">手机号码(用英文分号 ; 进行分割,建议最多1000个)</param>
        /// <param name="Contents">发送内容</param>
        /// <param name="UserID">用户自定义唯一值 [ 这里我们暂时尝试传递我们自有用户的ID ]</param>
        /// <param name="SubCode">扩展子号 [ 这里我们暂时尝试传递我们自有用户的完全账号 ]</param>
        public HuaXiaSms.SM_MT_Result SendSms(string Phones, string Contents, int UserID, string SubCode)
        {
            //定义请求体
            HuaXiaSms.SM_MT SmMt = new HuaXiaSms.SM_MT();
            SmMt.Channel = long.Parse(ChannelID);
            SmMt.ChannelSpecified = true;
            SmMt.Mobile = Phones;
            SmMt.Content = Contents;
            SmMt.SendTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
            SmMt.SeqID = UserID;
            SmMt.SubCode = SubCode;

            //定义返回头实体
            HuaXiaSms.ResponseSoapHeader ResponseHeader = new HuaXiaSms.ResponseSoapHeader();

            //定义返回实体
            HuaXiaSms.SM_MT_Result SmMtResult = new HuaXiaSms.SM_MT_Result();

            //开始请求
            ResponseHeader = Sms.SendSMS(RequestHeader, SmMt, out SmMtResult);

            return SmMtResult;
        }