msgDump = ''
        (data, headerDump) = self.unpackHeader(fielddef, data, transObj)
        (transObj, bodyDump) = fielddef.messageFormat.unpack(fielddef, data, transObj)
        print "header="+headerDump+"\n"
        print "body=" + bodyDump + "\n"
#        return (transObj, headerDump.encode('ascii')+bodyDump.encode('ascii'))
        return (transObj, bodyDump)


if (__name__ == "__main__"):
    import IsoFieldDef
    from DumpBinary import dumpBinary
    from Dictionary import LoadDictionaries
    import Configure

    Configure.LoadConfiguration("project/bos2.1.prj")

    dicts = LoadDictionaries("project/bos2.1/dictionary")
    fielddef = IsoFieldDef.LoadIsoFieldDef("project/bos2.1/Bos21FieldDef.xml", dicts)

    config = {}
    config['pinblock_mode'] = "08"
    config['zpk'] = "1C25E98F9B9249AB"
    config['zak'] = "04C7BA865EECA85E"

    transDesc = CreateTransDescObject(fielddef, "project/bos2.1/trans_cases/ExchangePinKeyTripleDes.xml", config)
#    transDesc = CreateTransDescObject(fielddef, "project/bos2.1/trans_cases/Sale.xml", config)

    transObj = {}
    transObj[0] = {'host' : "0200"}
    transObj[2] = {'host' : "4026740000001234"}