What you can also do is wrap the unpack call in a try catch block. In the catch block dump the isomsg, it will show you the isomsg in xml format to the point it was unpacked.
You can compare the field definitions and see if expected match what you are seeing. You will see some field that may have data but it will still be incorrect due to the packager. What I am trying to say is field 41 may not be the problem and an earlier field unpack due to a wrong definition caused it to get misaligned and eventually got caught up at field 41.
If you still can't figure it out, please share the entire of test.xml.
-chhil
--
--
jPOS is licensed under AGPL - free for community usage for your open-source project. Licenses are also available for commercial usage. Please support jPOS, contact: sa...@jpos.org
Join us in IRC at http://webchat.freenode.net/?channels=jpos
You received this message because you are subscribed to the "jPOS Users" group.
Please see http://jpos.org/wiki/JPOS_Mailing_List_Readme_first
To post to this group, send email to jpos-...@googlegroups.com
To unsubscribe, send email to jpos-users+...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/jpos-users
---
You received this message because you are subscribed to the Google Groups "jPOS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jpos-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/CABCV0cyO1kBBUJKZARthZ3zP_YaV-bCg3A7ujO38DNTyGOhcbg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/CAPazefBstnb7S8apFJaUEfiQvXimcn1tCzJ6ueMHVqJTUfjLeQ%40mail.gmail.com.
> I'm trying to unpack a example msg but no success, What I'm doing wrong
You have not asked a smart question:-
http://www.catb.org/esr/faqs/smart-questions.html
The first this you should have done is match the packager to the
interface specification...
... field lengths and formats.
> expected resul:
>
[snip]
> BIT [035] (22) 0019016295768002062012
[snip]
> BIT [061] (003) 001
[snip]
--
--
jPOS is licensed under AGPL - free for community usage for your open-source project. Licenses are also available for commercial usage. Please support jPOS, contact: sa...@jpos.org
Join us in IRC at http://webchat.freenode.net/?channels=jpos
You received this message because you are subscribed to the "jPOS Users" group.
Please see http://jpos.org/wiki/JPOS_Mailing_List_Readme_first
To post to this group, send email to jpos-...@googlegroups.com
To unsubscribe, send email to jpos-users+...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/jpos-users
---
You received this message because you are subscribed to the Google Groups "jPOS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jpos-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/56E5A710.5090002%40talktalk.net.
--
--
jPOS is licensed under AGPL - free for community usage for your open-source project. Licenses are also available for commercial usage. Please support jPOS, contact: sa...@jpos.org
Join us in IRC at http://webchat.freenode.net/?channels=jpos
You received this message because you are subscribed to the "jPOS Users" group.
Please see http://jpos.org/wiki/JPOS_Mailing_List_Readme_first
To post to this group, send email to jpos-...@googlegroups.com
To unsubscribe, send email to jpos-users+...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/jpos-users
---
You received this message because you are subscribed to the Google Groups "jPOS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jpos-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/CAPazefBmnLiihz0tn%3DXf8yNArErNR5YJaNh_M81ZvOkPRM-35g%40mail.gmail.com.
ISO87APackager should reflect the same effect of GenericPackager + iso87ascii.xml?
I made some modifications on ISO87APackager to fit the interface( basically fields lengths(didn't changed any data type)) and worked.MTI = 0200Field (3) = 003000Field (4) = 000000001000Field (7) = 0525181822Field (11) = 284406Field (12) = 181822Field (13) = 0525Field (18) = 0002Field (22) = 021Field (35) = 0019016295768002062012Field (41) = 20191639Field (42) = 000000000213017Field (61) = 001Field (67) = 01
--
--
jPOS is licensed under AGPL - free for community usage for your open-source project. Licenses are also available for commercial usage. Please support jPOS, contact: sa...@jpos.org
Join us in IRC at http://webchat.freenode.net/?channels=jpos
You received this message because you are subscribed to the "jPOS Users" group.
Please see http://jpos.org/wiki/JPOS_Mailing_List_Readme_first
To post to this group, send email to jpos-...@googlegroups.com
To unsubscribe, send email to jpos-users+...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/jpos-users
---
You received this message because you are subscribed to the Google Groups "jPOS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jpos-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/CAAgSK%3DknOX5H63bZxmcXYy%3DCFd03TK9X%2BrhbiopAT1YAFNdeKw%40mail.gmail.com.