Exemple #1
0
       /// <summary>
        /// Initial the webservice API.
       /// </summary>
       /// <param name="client">client</param>
       /// <param name="userName">user name</param>
       /// <param name="password">password</param>
        public MailAdapter(String client, String userName, String password)
        {
            this.client = client;
            this.userName = userName;
            this.password = password;

            exportService = new cn.tripolis.dialogue.export.ExportService();
            exportAuthInfo = new cn.tripolis.dialogue.export.AuthInfo
                {
                    client = client,
                    username = userName,
                    password = password
                };
           exportService.authInfo = exportAuthInfo;

            importService = new cn.tripolis.dialogue.import.ImportService();
            importAuthInfo = new cn.tripolis.dialogue.import.AuthInfo
                {
                    client = client,
                    username = userName,
                    password = password
                };
           importService.authInfo = importAuthInfo;

        }      
Exemple #2
0
/*
        private const String OK_RESULT = MailAdapter.OK_RESULT;
*/

        /// <summary>
        /// Initial the webservice API.
       /// </summary>
       /// <param name="client">client</param>
       /// <param name="userName">user name</param>
       /// <param name="password">password</param>
        public ExportAction(String client, String userName, String password, System.Net.WebProxy oWebProxy)
       {
           exportService = new cn.tripolis.dialogue.export.ExportService();
           exportAuthInfo = new cn.tripolis.dialogue.export.AuthInfo
                {
                    client = client,
                    username = userName,
                    password = password
                };
           exportService.authInfo = exportAuthInfo;
           exportService.Proxy = oWebProxy;
        }