コード例 #1
0
ファイル: SendMessage.cs プロジェクト: dandyyang/VPMS
        public SendMessage(string userID, string passWord)
        {
            this.UserID   = userID;
            this.PassWord = passWord;

            try
            {
                this._sendClient = new ServiceManage.SendMessagesService.hsyzSoapClient();

                this.SMSBodyMaxLenght = Convert.ToInt32(ConfigurationSettings.AppSettings["SendMessageBodyMaxLenght"].Trim());

                this._MsgDelaySender     = new ServiceManage.SendDelayMessage.wsMsgSending();
                this._MsgDelaySender.Url = ConfigurationSettings.AppSettings["MsgDelaySenderWebService"];
            }
            catch (Exception Ex)
            {
            }
        }
コード例 #2
0
ファイル: SendMessage.cs プロジェクト: Klutzdon/SIOTS_HHZX
        public SendMessage(string userID, string passWord)
        {
            this.UserID = userID;
            this.PassWord = passWord;

            try
            {
                this._sendClient = new ServiceManage.SendMessagesService.hsyzSoapClient();

                this.SMSBodyMaxLenght = Convert.ToInt32(ConfigurationSettings.AppSettings["SendMessageBodyMaxLenght"].Trim());

                this._MsgDelaySender = new ServiceManage.SendDelayMessage.wsMsgSending();
                this._MsgDelaySender.Url = ConfigurationSettings.AppSettings["MsgDelaySenderWebService"];
            }
            catch (Exception Ex)
            {

            }
        }