コード例 #1
0
        private string SaveResponseError(string xmlResponse, string identifier)
        {
            ResponseFatalError returnError = new DeserializeXml <ResponseFatalError>().deserializeXmlForDB(xmlResponse);
            Status             status      = new Status(returnError.RESPONSE);

            ConfigStatus.ConfigureStatus(status, _contentFile.NumberOfMessage, _contentFile.KindOfMessage, identifier);
            ConfigStatus.SaveStatus(status);

            return(MessagesOfReturn.AlertResponseWebServiceError(_contentFile.Message, identifier, _contentFile.NumberOfMessage));
        }
コード例 #2
0
        private string SaveResponseDataBase(string xmlResponse, string identifier)
        {
            T      response  = new DeserializeXml <T>().deserializeXmlForDB(xmlResponse);
            string msgReturn = "";

            if (response != null && response.IsDatasComplete)
            {
                msgReturn = response.SaveDataBase(identifier, _contentFile.Message, _contentFile.KindOfMessage);
            }
            else
            {
                msgReturn = SaveResponseError(xmlResponse, identifier);
            }

            if (_contentFile.NumberOfMessage != NumberOfMessage.One)
            {
                response.AlterFlagChangeMessage(identifier, _contentFile.KindOfMessage);
            }

            return(msgReturn);
        }