--
--
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
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.
For more options, visit https://groups.google.com/groups/opt_out.
We used Data Elements(DE) 2,3,4,11 and the sample data is as follows.----ISO MESSAGE-----MTI : 0300Field-2 : 123456789Field-3 : 910000Field-4 : 185.15Field-11 : 091212--------------------Packed Message:0300702000000000000009123456789910000000000185.15091212Red Font -- Bit Map
- We understand that Bit Map is in Hexadecimal format and the portion out of bit map- 702000000000 when it gets converted to Binary (011100000010000000000000000000000000000000000000) indicates that DE 2,3,4,11 are used in the packed message. But we are not able to understand the Bit map portion which is in red color with yellow background- 000009 .
- JPOS has functionality to pad zeros(In the above packed message we have not seen zero padding). We are not sure how to use this functionality. Any Example would be great.
- We are using basic.xml with schema found in http://jimmod.com/blog/2011/07/jimmys-blog-iso-8583-tutorial-build-and-parse-iso-message-using-jpos-library/ as a sample xml which has all the 128 elements defined in it. Please let us know if this is sufficient or do we need have our own xml with schema.
Thank you so much for your kind response.Its very informative.I still have doubt on padding. I do agree that Field-4 has zero padding. But when i tested for Field-2 , its not getting padded with zero.
Requirement says that : Primary Account Number V1/1B+…19, 4-bit BCD/11B.That mean Field-2 has max length of 19 and if its less than 19, it should be zero padded.
In the example i specified, Field-2 : 123456789 had the data of length 7
and the result would be Field 2 = 09123456789( as per the info provided by you) .
There is no zero padding for this field. Do we need to customize it ?
On Tuesday, September 10, 2013 12:57:38 PM UTC+1, shashi...@gmail.com wrote:Thank you so much for your kind response.Its very informative.I still have doubt on padding. I do agree that Field-4 has zero padding. But when i tested for Field-2 , its not getting padded with zero.Field 2 has a component that gives the length of the value present? This sort of does away with padding, although the recipient could align and pad as they need.Requirement says that : Primary Account Number V1/1B+…19, 4-bit BCD/11B.That mean Field-2 has max length of 19 and if its less than 19, it should be zero padded.Not as a variable length field.
In the example i specified, Field-2 : 123456789 had the data of length 7I count 9?
and the result would be Field 2 = 09123456789( as per the info provided by you) .Yep, 9 it is.
Perhaps you are thinking that the length include the length of the length?
No. I just considered the raw data excluding the length of Field-2. Its 1B+19 BCD.
There is no zero padding for this field. Do we need to customize it ?If you want a fixed field, that is padded, then you will need to change the field definition to another one IFA_CHAR perhaps (just guessing as you have not shared your need just yet)
--
Mark
hence we have no document on JPOS to understand what to be used.
There are 3 options as I see it
1. This mailing list has a lot of answers. Including pointers to the free PDFs that will surely help you.
2. The source code and test cases are available, get busy.
3. Buy the programmers guide, its money well spent to get you up and running quickly.
I am not aware of any other open framework out their that I would choose for production releases (even the closed source expensive ones are below par) :-)
-chhil
--
Yes. I do agree that mailing list helps a lot and we are using the available source code to pack and unpack the data to understand the basics.
We have packed request and response message with us. We are trying to use it as is with JPOS. Please help me to work around this.Issuing card 6006491286999941570 for $25.00 with PIN 4884 and sending track 2 data also.Assumptions:2 byte header
Complete request message in hex: (This sample msg is sent by our client for our understanding)005c03007038000120C0900013060064912869999415709100000000000025001008521008520807060612862306006491286999941000D181211048628335303030313233343539393939393939393939393939393908403030303034383834
005c - Header, length of message not including length of headerWe understand MTI and BIT Map and also Data Elements(DE). The last 3 DE are encoded (These are ANS with Fixed field length) .Say for example PIN 4884 ==>00004884 encoded as 3030303034383834.Also the above message has length indicator in Hexa and If the DE has odd number of digits, a leading zero is padded the first unused half-byte of data.
Complete request message in hex: (This sample msg is sent by our client for our understanding)005c03007038000120C0900013060064912869999415709100000000000025001008521008520807060612862306006491286999941000D181211048628335303030313233343539393939393939393939393939393908403030303034383834
005c - Header, length of message not including length of headerWe understand MTI and BIT Map and also Data Elements(DE). The last 3 DE are encoded (These are ANS with Fixed field length) .Say for example PIN 4884 ==>00004884 encoded as 3030303034383834.
Also the above message has length indicator in Hexa and If the DE has odd number of digits, a leading zero is padded the first unused half-byte of data.But when i used the raw data with JPOS to pack the message, it appeared little different.03007038000120C090001960064912869999415709100000000000025001008521008520807060612863606006491286999941000D1812110486283350001234599999999999999984000004884
Here are my observations:- Length indicator is not getting converted to Hexa
- leading zero is not padded to first unused half-byte of data when DE has odd number of digits
- Encoding is not happening
How can we achieve this with JPOS.
--
I would use the byte array and pass it to a ISOMsg for unpacking (assuming you have tweaked a packager to your needs and added loggers to get you a detailed output).
If you want an webseervice to be deployed then you simply expose an interface and annotate with @webmethod and can create an implementatin class which annotates as @webervice and write your parsing logic there
--
--
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/2b0911c0-0d28-4966-94b6-d75dc742a5d6%40googlegroups.com.