how to use dummy seperator in FSDMsg ?

21 views
Skip to first unread message

Shin

unread,
Jun 18, 2009, 2:13:55 AM6/18/09
to jPOS Users
Hi All,

i created a schema
<schema>
<field id="id" type="B" length="1" />
<field id="content" type="BDS" length="40"/>
</schema>

i can set TLVMsg to field "content" less than 40 bytes.
The send result:
<fsdmsg schema='file:base'>
id: '01'
content: '040C303030303030303031303030'
</fsdmsg>

but when i received and unpack.
<fsdmsg schema='file:base'>
id: '01'
EOF: 'true'
</fsdmsg>

I'm using same schema but i don't know why i can pack the message but
cannot unpack it.

--Shin

Mark Salter

unread,
Jun 18, 2009, 10:55:34 AM6/18/09
to jpos-...@googlegroups.com
Shin wrote:
> Hi All,
>
> i created a schema
> <schema>
> <field id="id" type="B" length="1" />
> <field id="content" type="BDS" length="40"/>
> </schema>
>
> i can set TLVMsg to field "content" less than 40 bytes.
> The send result:
> <fsdmsg schema='file:base'>
> id: '01'
> content: '040C303030303030303031303030'
> </fsdmsg>

Great, it 'works'.

>
> but when i received and unpack.
> <fsdmsg schema='file:base'>
> id: '01'
> EOF: 'true'
> </fsdmsg>
>
> I'm using same schema but i don't know why i can pack the message but
> cannot unpack it.

That would be - I'm afraid - because of an oversight and rushing on my
part. At the time the DS processing was added my focus was on pack only.

I am embarrassed to say that I never even tested the reverse process!
The requester went away happy, able to build and send the structure they
were after, so their receiving system did parse our pack output correctly.

FSDMsg does *not* currently correctly unpack a field with a 'separator'
of DS!

I will take a look 'shortly'...

I am on a course in a different time zone this week, so my evenings are
filled and my mornings I am trying to keep to myself 8); I cannot commit
to anything this week at least, sorry.

--
Mark

Shin

unread,
Jun 18, 2009, 9:11:27 PM6/18/09
to jPOS Users
Hi Mark,

Thanks your help. I'm always using FSDMsg instead of implements Custom
packager for
non-ISO 8583 message.

-- Shin

Shin

unread,
Jul 22, 2009, 10:57:50 PM7/22/09
to jPOS Users
Hi Mark,

Need your help to solve the unpack problem.
Thanks.

--Shin

On Jun 18, 10:55 pm, Mark Salter <marksal...@talktalk.net> wrote:

Mark Salter

unread,
Jul 23, 2009, 12:29:09 PM7/23/09
to jpos-...@googlegroups.com
Shin wrote:
>
> Need your help to solve the unpack problem.
I think this is fixed, do you want to try an amended version of
FSDMSg.java for me quickly?

If yes, I will send you a copy off-list for now.

--
Mark

Shin

unread,
Jul 24, 2009, 8:19:31 AM7/24/09
to jPOS Users
Thanks. I can unpack the message.

Mark Salter

unread,
Jul 24, 2009, 10:34:43 AM7/24/09
to jpos-...@googlegroups.com
Shin wrote:
> Thanks. I can unpack the message.
Did you get the version from svn (r2746)?

Great.

--
Mark

Shin

unread,
Jul 24, 2009, 9:51:43 PM7/24/09
to jPOS Users
Yes, i download the latest version.
Reply all
Reply to author
Forward
0 new messages