Exemplo n.º 1
0
        private string TestTran(string input, AHostCommand HC)
        {
            MessageResponse retMsg;

            Message.Message msg = new Message.Message(input);

            string trailingChars = "";

            if (ExpectTrailers())
            {
                trailingChars = msg.GetTrailers();
            }

            HC.AcceptMessage(msg);

            if (HC.XMLParseResult != ErrorCodes.ER_00_NO_ERROR)
            {
                retMsg = new MessageResponse();
                retMsg.AddElement(HC.XMLParseResult);
            }
            else
            {
                retMsg = HC.ConstructResponse();
            }

            retMsg.AddElement(trailingChars);

            HC.Terminate();
            HC = null;
            return(retMsg.MessageData);
        }