Пример #1
0
 public int ProcessParsing(string input)
 {
     this.packager = new ISOPackager();
     this.isomsg = new ISOMsg();
     this.isomsg.debug = false;
     this.isomsg.ASCIIMessage = this.rtfISOInput.Text;
     this.packager.ISOMsgObject = isomsg;
     try
     {
         this.packager.unpack();
     }
     catch (Exception e)
     {
         this.LogInfo ("[PARSER] : " + "ERROR - Ending Parsing . " + e.Message);
         return -1;
     }
     return 0;
 }
Пример #2
0
        public string getOutputProcess()
        {
            string XmlFile = ((string)(configurationAppSettings.GetValue("IsoXMLFile", typeof(string))));
            string result = "";
            Console.WriteLine( "UnPacking running ..." );
            ISOPackager c = new ISOPackager();
            c.IsoXmlFile = XmlFile;
            ISOMsg msgIso = new ISOMsg();
            msgIso.debug = true;
            msgIso.ASCIIMessage = this.input;
            c.ISOMsgObject = msgIso;
            c.unpack();

            Console.WriteLine( "Packing with update field ..." );
            c.ISOMsgObject.set(0, "0810");
            c.ISOMsgObject.set(39, "00");
            c.pack();
            result =  c.ISOMsgObject.ASCIIMessage;
            return result;
        }