예제 #1
0
        private string ExecuteProcessMessage(string key, string value)
        {
            string messageReturn = "";

            if (!string.IsNullOrEmpty(value))
            {
                try
                {
                    string xmlRequest = value;
                    string fileName   = GetFileName(key);

                    SaveXMLOriginal.SaveXML(_contentFile.ProvideContent(xmlRequest, fileName, TypeContentText.REQUEST));

                    string xmlResponse = RequestWebService.doRequestWebService(xmlRequest, _contentFile.Message);
                    SaveXMLOriginal.SaveXML(_contentFile.ProvideContent(xmlResponse, fileName, TypeContentText.RESPONSE));

                    messageReturn += SaveResponseDataBase(xmlResponse, key);
                }
                catch (Exception ex)
                {
                    BuildLogException(key, ex);
                }
            }
            else
            {
                messageReturn += MessagesOfReturn.DatasToRequestEmpty(_contentFile.Message);
            }

            return(messageReturn);
        }