Using TLVs

124 views
Skip to first unread message

Prajakta S

unread,
Apr 3, 2008, 7:08:44 AM4/3/08
to jPOS Users
Hi All,

I am working on ISO8583 version 2003 spec wherein some of the data
elements
have TLV format.
I have downloaded the "jpos-1.6.0-r2465" sourcecode from
sourceforge.There is a class TLVList which handles TLV type of data
elements.
I also referred to "http://en.wikipedia.org/wiki/Type-length-value" to
understand its meaning.

But in ISO v2003...the TLV is just the subelement..i.e the
eg Bit 43 - Card acceptor name.location if of type LLLLVAR ansb..9999,
it has subelement
43-71 - Card acceptor address information which is of type "Tag
81" ..

My question is does jPOS currently support this? Is the above element
to be treated as only "LLLLVAR ansb..9999" and TLV to be ignored?


Thanks,
Prajakta

Alejandro Revilla

unread,
Apr 3, 2008, 8:00:22 AM4/3/08
to jpos-...@googlegroups.com
>
> My question is does jPOS currently support this? Is the above element
> to be treated as only "LLLLVAR ansb..9999" and TLV to be ignored?
>
I'm afraid you need to use LLLLBINARY and then handle the inner dataset
71 image as another ISOMsg with a configuration similar to this:

<isofieldpackager
id="43"
length="9999"
name="Card acceptor name/location"
class="org.jpos.iso.IFB_LLLLBINARY"
emitBitmap="true" bitmapField="0"
packager="org.jpos.iso.packager.GenericSubFieldPackager">
<isofield
id="0"
length="16"
name="Bit Map"
class="org.jpos.iso.IFB_BITMAP"/>
<isofield
id="2"
length="50"
name="Card acceptor name"
class="org.jpos.iso.IFB_LLCHAR"/>
<isofield
id="3"
length="99"
name="Card acceptor street address"
class="org.jpos.iso.IFB_LLCHAR"/>
<isofield
id="4"
length="50"
name="Card acceptor city"
class="org.jpos.iso.IFB_LLCHAR"/>
<isofield
id="5"
length="3"
name="Card acceptor state, province, or region"
class="org.jpos.iso.IF_CHAR"/>
<isofield
id="6"
length="10"
name="Card acceptor postal code"
class="org.jpos.iso.IF_CHAR"/>
<isofield
id="7"
length="3"
name="Card acceptor country code"
class="org.jpos.iso.IF_CHAR"/>
<isofield
id="8"
length="16"
name="Card acceptor phone number"
class="org.jpos.iso.IF_CHAR"/>
<isofield
id="9"
length="16"
name="Card acceptor customer service phone number"
class="org.jpos.iso.IF_CHAR"/>
<isofield
id="10"
length="30"
name="Card acceptor additional contact information"
class="org.jpos.iso.IFB_LLCHAR"/>
<isofield
id="11"
length="255"
name="Card acceptor internet URL"
class="org.jpos.iso.IFB_LLLCHAR"/>
<isofield
id="12"
length="99"
name="Card acceptor e-mail address"
class="org.jpos.iso.IFB_LLCHAR"/>
</isofieldpackager>

We hope to make this simpler in the near future. We want to push 1.6.2
out as soon as possible and this is a nice feature for 1.6.3.

--Alejandro

Prajakta S

unread,
Apr 18, 2008, 6:17:48 AM4/18/08
to jPOS Users
Hi Alejandro,

How should we handle a complex data element like TLVs.
What I mean is with the XML configuration given below
how should we set the field value in ISOMsg object for composite
elements.
Usually we set it like-
m.set(3,"21");

How should composite elements like the one below be set?

Thanks,
Prajakta

Alejandro Revilla

unread,
Apr 18, 2008, 5:57:13 PM4/18/08
to jpos-...@googlegroups.com
>
> How should we handle a complex data element like TLVs.
>
We currently handle them as an opaque field (binary) and use
org.jpos.tlv.TLVMsg to manipulate that binary field.

>
> How should composite elements like the one below be set?
>

For non-TLV composite elements, you can use code like this:

m.set ("63.1", "0000");

in order to set field 63's subfield 1.

Prajakta S

unread,
Apr 25, 2008, 3:17:28 AM4/25/08
to jPOS Users
Hi,
ISOMsg has following set methods
set(int fldno, String value) and
set (int fldno, byte[] value)
So, m.set ("63.1", "0000"); will not work

Thanks,
Prajakta

Andres Alcarraz

unread,
Apr 25, 2008, 3:33:25 AM4/25/08
to jpos-...@googlegroups.com
It will work if you update jPOS to the last svn revision.

Andrés

Prajakta S

unread,
Apr 29, 2008, 3:05:29 AM4/29/08
to jPOS Users
We are trying to download the latest svn version,(we are facing
problems with it),
Was this being handled in any other way in earlier version,or was it
that the concept of subelements was introduced in recent versions of
ISO8583 spec?

-Thanks
> >> in order to set field 63's subfield 1.- Hide quoted text -
>
> - Show quoted text -

Mark Salter

unread,
Apr 29, 2008, 5:24:01 AM4/29/08
to jPOS Users


On Apr 29, 8:05 am, Prajakta S <prajaktas...@gmail.com> wrote:
> We are trying to download the latest svn version,(we are facing
> problems with it),
Shall we go back to that thread? The problems you are facing are
specific to your environment.

> Was this being handled in any other way in earlier version,
Within jPOS no, just the version in the svn repository introduces this
concept as part of base jPOS.

> or was it that the concept of subelements was introduced in recent versions of
> ISO8583 spec?
Subelements have been around for a long time, if not 'forever'.

--
Mark
Reply all
Reply to author
Forward
0 new messages