Пример #1
0
        public bool sendDoc(string fileName, string base64data)
        {
            SendDocRequest req = new SendDocRequest();

            req.user       = new User();
            req.user.login = conf.Login;
            req.user.pass  = Utils.GetMD5String(conf.Soap_pass);
            req.fileName   = fileName;
            req.content    = base64data;
            SendDocResponse resp = (SendDocResponse)Soap.SendDoc <SendDocResponse>(req);

            if (resp.errorCode != 0)
            {
                Logger.log("ERROR: " + resp.errorMessage);
                throw new Exception(resp.errorMessage);
            }
            return(resp.errorCode == 0);
        }