private HuaXiaSms.RequestSoapHeader GetRequestHeader()
        {
            HuaXiaSms.RequestSoapHeader _RequestHeader = new HuaXiaSms.RequestSoapHeader();
            string timeSpan = DateTime.Now.ToString("yyyyMMddHHmmss");
            _RequestHeader.UserName = UserName;
            _RequestHeader.Password = HuaXiaMD5Encode.EncodePassword(UserName, PassWord, timeSpan);
            _RequestHeader.Timestamp = timeSpan;

            return _RequestHeader;
        }
        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

        }
 public HuaXiaSmsSendService()
 {
     RequestHeader = GetRequestHeader();
 }