--
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
I modified the UnpackTest class and the packager.xml, and it gives the
same result than yours.
But the target result should be as below without changing the packager.xml:
<isomsg>
<field id="0" value="0200"/>
<field id="2" value="261332___0665"/>
<field id="3" value="000000"/>
<field id="7" value="0404163140"/>
<field id="11" value="000043"/>
<field id="12" value="163140"/>
<field id="13" value="0404"/>
<field id="30" value="D00000000"/>
<field id="32" value="00000000000"/>
<field id="41" value="TSTXXXX "/>
<field id="43" value="BALANCE ENQUIRY "/>
<field id="48" value="THIERRY RANDRIANIRIANA"/>
<field id="49" value="969"/>
<field id="102" value="15791590012"/>
</isomsg>
I generate the message with jpos lib and there is a difference on the field 32 :
|0200E238000500A1800000000000040000001226133241066500000004041631400000431631400404D0000000000000000000TSTXXXX
BALANCE ENQUIRY 022THIERRY
RANDRIANIRIANA9691115791590012 |
|0200E238000500A1800000000000040000001226133241066500000004041631400000431631400404D000000001100000000000TSTXXXX
BALANCE ENQUIRY 022THIERRY
RANDRIANIRIANA9691115791590012|
Thanks for the help!
Best Regards,
--
Thierry Randrianiriana
> But the target result should be as below without changing the packager.xml:
The Packager used defines the structure and content of the fields in the
message. The Packager *must* therefore match the specification and you
will need to ensure that the Packager (or Generic definition) matches
the specification of the interface you want to connect with.
Selecting or making a Packager that matches the specification is almost
the first task you should do; the first being to acquire the
documentation needed :-) .
>
> <isomsg>
> <field id="0" value="0200"/>
> <field id="2" value="261332___0665"/>
> <field id="3" value="000000"/>
> <field id="7" value="0404163140"/>
> <field id="11" value="000043"/>
> <field id="12" value="163140"/>
> <field id="13" value="0404"/>
> <field id="30" value="D00000000"/>
> <field id="32" value="00000000000"/>
> <field id="41" value="TSTXXXX "/>
> <field id="43" value="BALANCE ENQUIRY "/>
> <field id="48" value="THIERRY RANDRIANIRIANA"/>
> <field id="49" value="969"/>
> <field id="102" value="15791590012"/>
> </isomsg>
>
> I generate the message with jpos lib and there is a difference on the field 32 :
How would you suggest we guess what each of these 'raw' messages are and
which is produced with jPOS?
Anyway...
>
> |0200E238000500A1800000000000040000001226133241066500000004041631400000431631400404D0000000000000000000TSTXXXX
> BALANCE ENQUIRY 022THIERRY
> RANDRIANIRIANA9691115791590012 |
Let's assume that the one below is out of jPOS, since the field 32 has a
length (11) present!
> |0200E238000500A1800000000000040000001226133241066500000004041631400000431631400404D000000001100000000000TSTXXXX
> BALANCE ENQUIRY 022THIERRY
> RANDRIANIRIANA9691115791590012|
Check the specification for the interface you want to talk to and pay
careful attention to it's definition of field 32...
... does your field 32 include any variable length, or is it fixed
length 11 bytes?
Now you have the documentation to hand and open, check that all the
field definitions precisely match the Packager you have chosen.
Yes it is a dull job, but an essential one I suggest you do and
certainly one that might well save you problems in the future.
--
Mark
On Thu, Apr 5, 2012 at 9:39 AM, Mark Salter <marks...@talktalk.net> wrote:
> On 05/04/2012 06:09, Thierry Randrianiriana wrote:
>
>> But the target result should be as below without changing the packager.xml:
> The Packager used defines the structure and content of the fields in the
> message. The Packager *must* therefore match the specification and you
> will need to ensure that the Packager (or Generic definition) matches
> the specification of the interface you want to connect with.
>
> Selecting or making a Packager that matches the specification is almost
> the first task you should do; the first being to acquire the
> documentation needed :-) .
>
Yes, you're right, it was the first thing I've done ;-) . I checked
and rechecked all fields against the documentation but I always get
this error.
I'm not the developer of the client side and it's the reason of this post.
>>
>> <isomsg>
>> <field id="0" value="0200"/>
>> <field id="2" value="261332___0665"/>
>> <field id="3" value="000000"/>
>> <field id="7" value="0404163140"/>
>> <field id="11" value="000043"/>
>> <field id="12" value="163140"/>
>> <field id="13" value="0404"/>
>> <field id="30" value="D00000000"/>
>> <field id="32" value="00000000000"/>
>> <field id="41" value="TSTXXXX "/>
>> <field id="43" value="BALANCE ENQUIRY "/>
>> <field id="48" value="THIERRY RANDRIANIRIANA"/>
>> <field id="49" value="969"/>
>> <field id="102" value="15791590012"/>
>> </isomsg>
>>
>> I generate the message with jpos lib and there is a difference on the field 32 :
> How would you suggest we guess what each of these 'raw' messages are and
> which is produced with jPOS?
> Anyway...
Sorry, I'm not the developer of the client side, I guess also ...
after Alejandro answer.
I forwarded the problem to the client developer .
>>
>> |0200E238000500A1800000000000040000001226133241066500000004041631400000431631400404D0000000000000000000TSTXXXX
>> BALANCE ENQUIRY 022THIERRY
>> RANDRIANIRIANA9691115791590012 |
> Let's assume that the one below is out of jPOS, since the field 32 has a
> length (11) present!
>> |0200E238000500A1800000000000040000001226133241066500000004041631400000431631400404D000000001100000000000TSTXXXX
>> BALANCE ENQUIRY 022THIERRY
>> RANDRIANIRIANA9691115791590012|
> Check the specification for the interface you want to talk to and pay
> careful attention to it's definition of field 32...
>
> ... does your field 32 include any variable length, or is it fixed
> length 11 bytes?
>
Mine is :
<isofield
id="32"
length="11"
name="ACQUIRING INSTITUTION IDENT CODE"
class="org.jpos.iso.IFA_LLNUM"
/>
> Now you have the documentation to hand and open, check that all the
> field definitions precisely match the Packager2 you have chosen.
> Yes it is a dull job, but an essential one I suggest you do and
> certainly one that might well save you problems in the future.
>
Thank you for answer :-)
Thanks guys, you rock!
--
Thierry Randrianiriana
>> Selecting or making a Packager that matches the specification is almost
>> the first task you should do; the first being to acquire the
>> documentation needed :-) .
>>
>
> Yes, you're right, it was the first thing I've done ;-) . I checked
> and rechecked all fields against the documentation but I always get
> this error.
As Chhil has suggested, you missed at least one field, I would check
again, bearing in mind to check the fixed length fields and the variable
length ones.
If you have missed any others, checking now might save you all sorts of
pain later :-)
--
Mark