public bool Execute(string xmlText) { errMsg = ""; response = new StandardResponse(); response.ResponseHdr = new ResponseHdrType() { Code = ResponseHdrStatusType.ApplicationError, Message = errMsg }; try { statusMsg = xmlText.Deserialize <StatusUpdateRq>(); ProcessStatusMsg(); } catch (Exception e) { False("Error in document uploaded: " + e.Message, e.ToString()); } response.ResponseHdr.Message = errMsg; response.ResponseHdr.Code = errMsg.IsStrEmpty() ? ResponseHdrStatusType.OK : ResponseHdrStatusType.ApplicationError; responseXml = response.SerializeObject <StandardResponse>(); return(false); }