[jpos-users] How to read bitmap from ISO message

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[jpos-users] How to read bitmap from ISO message

Gaurav Kumar
Dear All,

I am using m.dump(System.out, ""); to read the incoming ISO message fields. However in the dump I am not able to see bitmap that should be present in field 1. Please suggest if I am missing something or suggest me how to read bitmap programatically. The dump printed the following:


<isomsg>
  <!-- org.jpos.iso.packager.GenericPackager[/home/apache-tomcat-7.0.72/webapps/CanFI/WEB-INF/classes/fields.xml] -->
  <field id="0" value="0200"/>
  <field id="2" value="5061071522300000043"/>
  <field id="3" value="402010"/>
  <field id="4" value="000000010000"/>
  <field id="7" value="0902063455"/>
  <field id="11" value="000001"/>
  <field id="12" value="063455"/>
  <field id="13" value="0902"/>
  <field id="14" value="2102"/>
  <field id="18" value="6011"/>
  <field id="22" value="051"/>
  <field id="23" value="001"/>
  <field id="25" value="00"/>
  <field id="26" value="12"/>
  <field id="28" value="D00000000"/>
  <field id="32" value="506107"/>
  <field id="35" value="5061071522300000043D2102601013544433"/>
  <field id="37" value="111196000001"/>
  <field id="40" value="601"/>
  <field id="41" value="11119627"/>
  <field id="42" value="EBN000000005231"/>
  <field id="43" value="ENG RV RUMUOKORO       RV           RVNG"/>
  <field id="49" value="566"/>
  <field id="52" value="1E68EDC1F04E8C5B"/>
  <field id="55" value="9F2608B2A95E7D44F8738B9F2701409F10200FA501620200140000000000000000000F01AAAAAAAAAAAAAAAAAAAAAAAAAAAA9F370490744D949F360201B5950542802400009A031612149C01009F02060000000000155F2A020949820258009F1A020792"/>
  <field id="98" value="9037080370803708037084147"/>
  <field id="100" value="903708"/>
  <field id="103" value="5251036513"/>
  <field id="123" value="511201513344002"/>
</isomsg>

--
--
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: [hidden email]
---
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/e4cfdebc-8bd6-4b18-84aa-cab2c178ad65%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [jpos-users] How to read bitmap from ISO message

Victor Salaman-Medina
Hi:

Bitmaps don't show in dump(). You can programtically get the bitmap by calling recalcBitMap() on the ISOMsg, and then getting field(-1) , you'll get an instance of ISOBitMap


On Thu, Dec 15, 2016 at 5:27 AM, Gaurav Kumar <[hidden email]> wrote:
Dear All,

I am using m.dump(System.out, ""); to read the incoming ISO message fields. However in the dump I am not able to see bitmap that should be present in field 1. Please suggest if I am missing something or suggest me how to read bitmap programatically. The dump printed the following:


<isomsg>
  <!-- org.jpos.iso.packager.GenericPackager[/home/apache-tomcat-7.0.72/webapps/CanFI/WEB-INF/classes/fields.xml] -->
  <field id="0" value="0200"/>
  <field id="2" value="5061071522300000043"/>
  <field id="3" value="402010"/>
  <field id="4" value="000000010000"/>
  <field id="7" value="0902063455"/>
  <field id="11" value="000001"/>
  <field id="12" value="063455"/>
  <field id="13" value="0902"/>
  <field id="14" value="2102"/>
  <field id="18" value="6011"/>
  <field id="22" value="051"/>
  <field id="23" value="001"/>
  <field id="25" value="00"/>
  <field id="26" value="12"/>
  <field id="28" value="D00000000"/>
  <field id="32" value="506107"/>
  <field id="35" value="5061071522300000043D2102601013544433"/>
  <field id="37" value="111196000001"/>
  <field id="40" value="601"/>
  <field id="41" value="11119627"/>
  <field id="42" value="EBN000000005231"/>
  <field id="43" value="ENG RV RUMUOKORO       RV           RVNG"/>
  <field id="49" value="566"/>
  <field id="52" value="1E68EDC1F04E8C5B"/>
  <field id="55" value="9F2608B2A95E7D44F8738B9F2701409F10200FA501620200140000000000000000000F01AAAAAAAAAAAAAAAAAAAAAAAAAAAA9F370490744D949F360201B5950542802400009A031612149C01009F02060000000000155F2A020949820258009F1A020792"/>
  <field id="98" value="9037080370803708037084147"/>
  <field id="100" value="903708"/>
  <field id="103" value="5251036513"/>
  <field id="123" value="511201513344002"/>
</isomsg>

--
--
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: [hidden email]
---
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/e4cfdebc-8bd6-4b18-84aa-cab2c178ad65%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
--
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: [hidden email]
---
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/CALK1SywZ1%3D84zoPpz1hnefPo4kVTL%2BcCYX6Js_G-xZfyadCZ3Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[jpos-users] Re: How to read bitmap from ISO message

jPOS - Users mailing list
In reply to this post by Gaurav Kumar

On Thursday, December 15, 2016 at 10:27:59 AM UTC, Gaurav Kumar wrote:
  <field id="2" value="506107*********0043"/>
  <field id="35" value="506107*********0043D2102601013544433"/>
 
All test values I hope!
 
--
Mark

--
--
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: [hidden email]
---
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/377958c1-0ee2-44a5-8abd-15ff8d517700%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [jpos-users] How to read bitmap from ISO message

chhil
In reply to this post by Victor Salaman-Medina
If you really need it, add a logger to your packager in the channel config. The property is packager-logger. It wont show up as field 1 but will atleast be visible.


A sample of received message will look like... Remember it will display all your fields in the clear, so compliance will go out of the window. For debugging it may be useful. 
<log realm="" at="Thu Dec 15 18:07:18 IST 2016.987" lifespan="1ms">
  <unpack>
    3032303040000000000000003039313233343536373839
    <bitmap>{2}</bitmap>
    <unpack fld="2" packager="org.jpos.iso.IFA_LLNUM">
      <value>123456789</value>
    </unpack>
  </unpack>
</log>
<isomsg direction="none">
  <!-- org.jpos.iso.packager.GenericPackager[.\cfg\discover.xml] -->
  <field id="0" value="0200"/>
  <field id="2" value="123456789"/>
</isomsg>
Alternatively

Uncomment those lines and build your jpos jar or place that uncommented file ahead of your jpos jar so it gets picked up :)

And you will see
<isomsg direction="none">
  <!-- org.jpos.iso.packager.GenericPackager[.\cfg\discover.xml] -->
  <field id="0" value="0200"/>
  <field id="bitmap" value="{2}" type="bitmap"/>
  <field id="2" value="123456789"/>
</isomsg>
-chhil

On Thu, Dec 15, 2016 at 4:23 PM, Victor Salaman <[hidden email]> wrote:
Hi:

Bitmaps don't show in dump(). You can programtically get the bitmap by calling recalcBitMap() on the ISOMsg, and then getting field(-1) , you'll get an instance of ISOBitMap


On Thu, Dec 15, 2016 at 5:27 AM, Gaurav Kumar <[hidden email]> wrote:
Dear All,

I am using m.dump(System.out, ""); to read the incoming ISO message fields. However in the dump I am not able to see bitmap that should be present in field 1. Please suggest if I am missing something or suggest me how to read bitmap programatically. The dump printed the following:


<isomsg>
  <!-- org.jpos.iso.packager.GenericPackager[/home/apache-tomcat-7.0.72/webapps/CanFI/WEB-INF/classes/fields.xml] -->
  <field id="0" value="0200"/>
  <field id="2" value="5061071522300000043"/>
  <field id="3" value="402010"/>
  <field id="4" value="000000010000"/>
  <field id="7" value="0902063455"/>
  <field id="11" value="000001"/>
  <field id="12" value="063455"/>
  <field id="13" value="0902"/>
  <field id="14" value="2102"/>
  <field id="18" value="6011"/>
  <field id="22" value="051"/>
  <field id="23" value="001"/>
  <field id="25" value="00"/>
  <field id="26" value="12"/>
  <field id="28" value="D00000000"/>
  <field id="32" value="506107"/>
  <field id="35" value="5061071522300000043D2102601013544433"/>
  <field id="37" value="111196000001"/>
  <field id="40" value="601"/>
  <field id="41" value="11119627"/>
  <field id="42" value="EBN000000005231"/>
  <field id="43" value="ENG RV RUMUOKORO       RV           RVNG"/>
  <field id="49" value="566"/>
  <field id="52" value="1E68EDC1F04E8C5B"/>
  <field id="55" value="9F2608B2A95E7D44F8738B9F2701409F10200FA501620200140000000000000000000F01AAAAAAAAAAAAAAAAAAAAAAAAAAAA9F370490744D949F360201B5950542802400009A031612149C01009F02060000000000155F2A020949820258009F1A020792"/>
  <field id="98" value="9037080370803708037084147"/>
  <field id="100" value="903708"/>
  <field id="103" value="5251036513"/>
  <field id="123" value="511201513344002"/>
</isomsg>

--
--
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: [hidden email]
---
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/e4cfdebc-8bd6-4b18-84aa-cab2c178ad65%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
--
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: [hidden email]
---
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/CALK1SywZ1%3D84zoPpz1hnefPo4kVTL%2BcCYX6Js_G-xZfyadCZ3Q%40mail.gmail.com.

For more options, visit https://groups.google.com/d/optout.

--
--
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: [hidden email]
---
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/CAPazefCML6RWiDxGSfZV4ntzag46Gro8U76X%3Dg43aUfsGAg4vg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Loading...