[jpos-users] How to process MasterCard IPM File

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

[jpos-users] How to process MasterCard IPM File

Ramses Vidor
Hi,


I'm trying to parse a MasterCard IPM file using jPOS, but I have no clue on how to achieve this.

What I tried so far:
1. Configured the GenericPackager with an xml file according to the specs from MasterCard IPM Format doc. It looks like this:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE isopackager PUBLIC
        "-//jPOS/jPOS Generic Packager DTD 1.0//EN"
        "http://jpos.org/dtd/generic-packager-1.0.dtd">

<isopackager>
    <isofield id="0" length="4"  name="MIT" class="org.jpos.iso.IFE_NUMERIC" />
    <isofield id="1" length="16" name="Bit Map" class="org.jpos.iso.IFE_BITMAP" />
    <isofield id="2" length="19" name="PAN" class="org.jpos.iso.IFE_LLNUM" pad="false" />
    <isofield id="3" length="6"  name="Processing Code" class="org.jpos.iso.IFE_NUMERIC" pad="true" />
    <isofield id="4" length="12" name="Transaction Amount" class="org.jpos.iso.IFE_NUMERIC" pad="true" />
    <isofield id="5" length="12" name="Settlement Amount" class="org.jpos.iso.IFE_NUMERIC" pad="true" />
    <isofield id="6" length="12" name="Cardholder Billing Amount" class="org.jpos.iso.IFE_NUMERIC" pad="true" />
    [...]
</isopackager>


2. When I execute the following code:

ISOMsg message = new ISOMsg();
message.setPackager(new GenericPackager("path/to/my/config.xml");
message.unpack(myIPMFileBytes);

for (Entry<Integer, ISOComponent> transaction : ((Map<Integer, ISOComponent>) message.getChildren()).entrySet()) {
    System.out.println(MessageFormat.format("{0} : {1}", transaction.getKey(), transaction.getValue().getValue()));
}

3. The output generated from this snippet is:

-1 : {1, 2, 3, 4, 5, 6, 7, 8, 12, 14, 15, 18, 22, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 90, 91, 93, 96, 98, 99, 100, 106, 120, 126, 128}
0 : 0000
2 : 50
3 : 011310
4 : 230000001488
5 : 101101012200
6 : 1T00000001

It doesn't seem to be right, as the MTI is coming as 0000 and not all fields I need to extract data from are listed in the bit map (DE2, DE3, DE5, DE6, DE12, DE24, DE31, DE48/PDS147, PDS159, PDS0105 and PDS0195).

What am I doing wrong here?


Thanks,
Ramses

--
--
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]
 
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 [hidden email]
To unsubscribe, send email to [hidden email]
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/c75f31af-9f32-4b68-9507-1548c8bafa33%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 process MasterCard IPM File

Mark Salter-5
On 25/03/2014 23:31, Ramses Vidor wrote:
>
> What I tried so far:
> 1. Configured the GenericPackager with an xml file according to the
> specs from MasterCard IPM Format doc. It looks like this:
Ok


> 2. When I execute the following code:
>
> |
> ISOMsg message = new ISOMsg();
> message.setPackager(new GenericPackager("path/to/my/config.xml");
> message.unpack(myIPMFileBytes);
How do you form 'myIPMFileBytes' ?
Is it the first data record in the file?
Do these bytes have any structure?
Is there a header?, can you share a sample of the data?

>
> for (Entry<Integer, ISOComponent> transaction : ((Map<Integer,
> ISOComponent>) message.getChildren()).entrySet()) {
>     System.out.println(MessageFormat.format("{0} : {1}",
> transaction.getKey(), transaction.getValue().getValue()));
> }
> |
message.dump might be easier to 'read'?

>
> 3. The output generated from this snippet is:
>
> |
> -1 : {1, 2, 3, 4, 5, 6, 7, 8, 12, 14, 15, 18, 22, 25, 26, 27, 28, 29,
> 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47,
> 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65,
> 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83,
> 84, 85, 86, 87, 88, 90, 91, 93, 96, 98, 99, 100, 106, 120, 126, 128}
> 0 : 0000
> 2 : 50
> 3 : 011310
> 4 : 230000001488
> 5 : 101101012200
> 6 : 1T00000001
> |
>
> It doesn't seem to be right, as the MTI is coming as 0000 and not all
> fields I need to extract data from are listed in the bit map (DE2, DE3,
> DE5, DE6, DE12, DE24, DE31, DE48/PDS147, PDS159, PDS0105 and PDS0195).
The bytes that have been taken as the bitmap are not correct...
>
> What am I doing wrong here?
The bytes you are giving to the unpack do not match the form defined by
your packager.

The contents of 'myIPMFileBytes' *have* to be just a single message
*and* their structure needs to match that defined by the Packager (or
vice versa).


--
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]

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 [hidden email]
To unsubscribe, send email to [hidden email]
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/5332218B.9030604%40talktalk.net.
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 process MasterCard IPM File

Ramses Vidor
Hi Mark!


Thanks for your response. The output from the dump is:

<isomsg>
  <field id="0" value="0000"/>
  <field id="2" value="50"/>
  <field id="3" value="011310"/>
  <field id="4" value="230000001488"/>
  <field id="5" value="101101012200"/>
  <field id="6" value="1T00000001&#0;&#0;"/>
</isomsg>

Answering your questions:

Q: How do you form 'myIPMFileBytes'?
A: This is how I read the bytes from the file:

File file = new File("path/to/myIPMFile.ipm");
myIPMFileBytes = new byte[(int) file.length()];
InputStream in = new FileInputStream(file);
in.read(myIPMFileBytes);
in.close();


Q: Is it the first data record in the file? Do these bytes have any structure? Is there a header? Can you share a sample of the data?
R: I really don't know about these things. I only know the file is encoded with EBCDIC and I read the bytes directly from it. I also know that there are more fields on it, I only didn't configure all of them, as I saw that data in the first fields are not logical for me. I'm not sure if I can share the original file, but I can ask for permission to share it with you.

Well, I never implemented anything like this before, so I'm sure I'm missing something (if not everything).


Thanks,
Ramses

Em terça-feira, 25 de março de 2014 21h38min35s UTC-3, Mark Salter escreveu:
On 25/03/2014 23:31, Ramses Vidor wrote:
>
> What I tried so far:
> 1. Configured the GenericPackager with an xml file according to the
> specs from MasterCard IPM Format doc. It looks like this:
Ok


> 2. When I execute the following code:
>
> |
> ISOMsg message = new ISOMsg();
> message.setPackager(new GenericPackager("path/to/my/config.xml");
> message.unpack(myIPMFileBytes);
How do you form 'myIPMFileBytes' ?
Is it the first data record in the file?
Do these bytes have any structure?
Is there a header?, can you share a sample of the data?

>
> for (Entry<Integer, ISOComponent> transaction : ((Map<Integer,
> ISOComponent>) message.getChildren()).entrySet()) {
>     System.out.println(MessageFormat.format("{0} : {1}",
> transaction.getKey(), transaction.getValue().getValue()));
> }
> |
message.dump might be easier to 'read'?

>
> 3. The output generated from this snippet is:
>
> |
> -1 : {1, 2, 3, 4, 5, 6, 7, 8, 12, 14, 15, 18, 22, 25, 26, 27, 28, 29,
> 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47,
> 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65,
> 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83,
> 84, 85, 86, 87, 88, 90, 91, 93, 96, 98, 99, 100, 106, 120, 126, 128}
> 0 : 0000
> 2 : 50
> 3 : 011310
> 4 : 230000001488
> 5 : 101101012200
> 6 : 1T00000001
> |
>
> It doesn't seem to be right, as the MTI is coming as 0000 and not all
> fields I need to extract data from are listed in the bit map (DE2, DE3,
> DE5, DE6, DE12, DE24, DE31, DE48/PDS147, PDS159, PDS0105 and PDS0195).
The bytes that have been taken as the bitmap are not correct...
>
> What am I doing wrong here?
The bytes you are giving to the unpack do not match the form defined by
your packager.

The contents of 'myIPMFileBytes' *have* to be just a single message
*and* their structure needs to match that defined by the Packager (or
vice versa).


--
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]
 
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 [hidden email]
To unsubscribe, send email to [hidden email]
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/b25575cf-e2ae-4ba0-86fb-a0b5097c0cb4%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 process MasterCard IPM File

Mark Salter-5
On 26/03/2014 01:17, Ramses Vidor wrote:

> Thanks for your response. The output from the dump is:
>
> |
> <isomsg>
>   <field id="0" value="0000"/>
>   <field id="2" value="50"/>
>   <field id="3" value="011310"/>
>   <field id="4" value="230000001488"/>
>   <field id="5" value="101101012200"/>
>   <field id="6" value="1T00000001&#0;&#0;"/>
> </isomsg>
> |
Yes, I thought it would match, I was just letting you know about the
method to allow you to replace some of your code :-)

>
> Answering your questions:
>
> Q: How do you form 'myIPMFileBytes'?
> A: This is how I read the bytes from the file:
>
> |
> File file = new File("path/to/myIPMFile.ipm");
> myIPMFileBytes = new byte[(int) file.length()];
> InputStream in = new FileInputStream(file);
> in.read(myIPMFileBytes);
> in.close();
You will need to get the data a record at a time, strip of any file
headers or trailers, remove each record header (if there is one) since
in normal network flow, it is the Channel that deals with these and pass
the single record into your unpack.

>
> |
>
> Q: Is it the first data record in the file? Do these bytes have any
> structure? Is there a header? Can you share a sample of the data?
> R: I really don't know about these things.
Ok, then you need to read the documentation from MasterCard to determine
this.

> I only know the file is
> encoded with EBCDIC and I read the bytes directly from it. I also know
> that there are more fields on it, I only didn't configure all of them,
> as I saw that data in the first fields are not logical for me.
Ok, but you do intend to define the whole set of fields (including the
ones that are conditionally present yes?

> I'm not
> sure if I can share the original file, but I can ask for permission to
> share it with you.
That's fine.  Please get and read all the specifications of the file you
can get to find the file structure and in turn the record structure you
are wishing to process.

I have to think that close by the field definitions that you used for
your Packager will be the file definitions.

--
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]

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 [hidden email]
To unsubscribe, send email to [hidden email]
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/53328405.7010604%40talktalk.net.
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 process MasterCard IPM File

Ramses Vidor
Well, no success so far.

Now, I have a file with a single message. If I open the file, I can see that it's ok. The unpacked bit map content by jPOS is not what I see in the file if I open it in an hex editor.

I attached the file. The implementation is the same I described before.

Em quarta-feira, 26 de março de 2014 04h38min45s UTC-3, Mark Salter escreveu:
On 26/03/2014 01:17, Ramses Vidor wrote:

> Thanks for your response. The output from the dump is:
>
> |
> <isomsg>
>   <field id="0" value="0000"/>
>   <field id="2" value="50"/>
>   <field id="3" value="011310"/>
>   <field id="4" value="230000001488"/>
>   <field id="5" value="101101012200"/>
>   <field id="6" value="1T00000001&#0;&#0;"/>
> </isomsg>
> |
Yes, I thought it would match, I was just letting you know about the
method to allow you to replace some of your code :-)

>
> Answering your questions:
>
> Q: How do you form 'myIPMFileBytes'?
> A: This is how I read the bytes from the file:
>
> |
> File file = new File("path/to/myIPMFile.ipm");
> myIPMFileBytes = new byte[(int) file.length()];
> InputStream in = new FileInputStream(file);
> in.read(myIPMFileBytes);
> in.close();
You will need to get the data a record at a time, strip of any file
headers or trailers, remove each record header (if there is one) since
in normal network flow, it is the Channel that deals with these and pass
the single record into your unpack.

>
> |
>
> Q: Is it the first data record in the file? Do these bytes have any
> structure? Is there a header? Can you share a sample of the data?
> R: I really don't know about these things.
Ok, then you need to read the documentation from MasterCard to determine
this.

> I only know the file is
> encoded with EBCDIC and I read the bytes directly from it. I also know
> that there are more fields on it, I only didn't configure all of them,
> as I saw that data in the first fields are not logical for me.
Ok, but you do intend to define the whole set of fields (including the
ones that are conditionally present yes?

> I'm not
> sure if I can share the original file, but I can ask for permission to
> share it with you.
That's fine.  Please get and read all the specifications of the file you
can get to find the file structure and in turn the record structure you
are wishing to process.

I have to think that close by the field definitions that you used for
your Packager will be the file definitions.

--
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]
 
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 [hidden email]
To unsubscribe, send email to [hidden email]
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/3e1ac428-4680-47a5-aff7-4fb880b1ac6d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

test.ipm (1K) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [jpos-users] How to process MasterCard IPM File

Ramses Vidor
Just to clearify what's happening with this file:

jPOS unpacked Bit Map: {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, ...}

<isomsg>
  <field id="0" value="1240"/>
  <field id="2" value="0000000000000"/>
  <field id="3" value="060000"/>
  <field id="4" value="000000060000"/>
  <field id="5" value="000000060006"/>
  <field id="6" value="100000061000"/>
</isomsg>

According to the file content, the expected result should be:

Bit map hex: FC D4 07 C3 8C E1 E2 02 02 00 00 0C 10 00 00 00
Hex converted to binary: 1111110011010100...
Bit map content: {1, 2, 3, 4, 5, 6, 9, 10, 12, 14, ...}

<isomsg>
  <field id="0" value="1240"/>
  <field id="2" value="5345207000018113"/>
  <field id="3" value="000000"/>
  <field id="4" value="000000006000"/>
  <field id="5" value="000000006000"/>
  <field id="6" value="000000006000"/>
</isomsg>


Regards,
Ramses

Em quinta-feira, 27 de março de 2014 13h57min40s UTC-3, Ramses Vidor escreveu:
Well, no success so far.

Now, I have a file with a single message. If I open the file, I can see that it's ok. The unpacked bit map content by jPOS is not what I see in the file if I open it in an hex editor.

I attached the file. The implementation is the same I described before.

Em quarta-feira, 26 de março de 2014 04h38min45s UTC-3, Mark Salter escreveu:
On 26/03/2014 01:17, Ramses Vidor wrote:

> Thanks for your response. The output from the dump is:
>
> |
> <isomsg>
>   <field id="0" value="0000"/>
>   <field id="2" value="50"/>
>   <field id="3" value="011310"/>
>   <field id="4" value="230000001488"/>
>   <field id="5" value="101101012200"/>
>   <field id="6" value="1T00000001&#0;&#0;"/>
> </isomsg>
> |
Yes, I thought it would match, I was just letting you know about the
method to allow you to replace some of your code :-)

>
> Answering your questions:
>
> Q: How do you form 'myIPMFileBytes'?
> A: This is how I read the bytes from the file:
>
> |
> File file = new File("path/to/myIPMFile.ipm");
> myIPMFileBytes = new byte[(int) file.length()];
> InputStream in = new FileInputStream(file);
> in.read(myIPMFileBytes);
> in.close();
You will need to get the data a record at a time, strip of any file
headers or trailers, remove each record header (if there is one) since
in normal network flow, it is the Channel that deals with these and pass
the single record into your unpack.

>
> |
>
> Q: Is it the first data record in the file? Do these bytes have any
> structure? Is there a header? Can you share a sample of the data?
> R: I really don't know about these things.
Ok, then you need to read the documentation from MasterCard to determine
this.

> I only know the file is
> encoded with EBCDIC and I read the bytes directly from it. I also know
> that there are more fields on it, I only didn't configure all of them,
> as I saw that data in the first fields are not logical for me.
Ok, but you do intend to define the whole set of fields (including the
ones that are conditionally present yes?

> I'm not
> sure if I can share the original file, but I can ask for permission to
> share it with you.
That's fine.  Please get and read all the specifications of the file you
can get to find the file structure and in turn the record structure you
are wishing to process.

I have to think that close by the field definitions that you used for
your Packager will be the file definitions.

--
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]
 
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 [hidden email]
To unsubscribe, send email to [hidden email]
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/541a4f11-8445-4f04-89bd-c0d7f9c869a8%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 process MasterCard IPM File

Mark Salter-5
In reply to this post by Ramses Vidor
On 27/03/2014 16:57, Ramses Vidor wrote:
> Well, no success so far.
What have you changed?

Nothing?

>
> Now, I have a file with a single message. If I open the file, I can see
> that it's ok.
I can see ASCII data and a binary bitmap, which does not match your
packager.

> The unpacked bit map content by jPOS is not what I see in
> the file if I open it in an hex editor.
You need to make a Packager that matches the file, otherwise all bets
are off.

Please take note and apply my previous guidance.  What you are trying to
achieve is possible, you simply need to do the work on using the file
specification and documentation to produce a Packager - that's all.

--
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]

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 [hidden email]
To unsubscribe, send email to [hidden email]
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/5334A753.90703%40talktalk.net.
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 process MasterCard IPM File

Ramses Vidor
Mark,


Indeed! I figured out that the bitmap was not unpacking correctly and changed to IFB_BITMAP and voilá!

Got it to work now.

Thanks for all your help and support, dude!


Ramses

Em quinta-feira, 27 de março de 2014 19h33min55s UTC-3, Mark Salter escreveu:
On 27/03/2014 16:57, Ramses Vidor wrote:
> Well, no success so far.
What have you changed?

Nothing?

>
> Now, I have a file with a single message. If I open the file, I can see
> that it's ok.
I can see ASCII data and a binary bitmap, which does not match your
packager.

> The unpacked bit map content by jPOS is not what I see in
> the file if I open it in an hex editor.
You need to make a Packager that matches the file, otherwise all bets
are off.

Please take note and apply my previous guidance.  What you are trying to
achieve is possible, you simply need to do the work on using the file
specification and documentation to produce a Packager - that's all.

--
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]
 
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 [hidden email]
To unsubscribe, send email to [hidden email]
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/0afc1cf6-5eab-4469-b174-b7e140027ff7%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 process MasterCard IPM File

Mark Salter-5
On 27/03/2014 23:21, Ramses Vidor wrote:
> Indeed! I figured out that the bitmap was not unpacking correctly and
> changed to IFB_BITMAP and voilá!
>
> Got it to work now.
How did you get the ASCII/EBCDIC difference sorted?
>
> Thanks for all your help and support, dude!
No problem, did you have a working Packager to share at all?

:-)

--
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]

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 [hidden email]
To unsubscribe, send email to [hidden email]
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/5334B308.8090107%40talktalk.net.
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 process MasterCard IPM File

rishi raj
In reply to this post by Mark Salter-5
Hi Mark
if i am passing the whole input stream in unpack method it is parsing only first data in ipm file.
can you guide me how to deal with this issue?
As i am new to this Jpos.

On Friday, 28 March 2014 04:03:55 UTC+5:30, Mark Salter wrote:
On 27/03/2014 16:57, Ramses Vidor wrote:
> Well, no success so far.
What have you changed?

Nothing?

>
> Now, I have a file with a single message. If I open the file, I can see
> that it's ok.
I can see ASCII data and a binary bitmap, which does not match your
packager.

> The unpacked bit map content by jPOS is not what I see in
> the file if I open it in an hex editor.
You need to make a Packager that matches the file, otherwise all bets
are off.

Please take note and apply my previous guidance.  What you are trying to
achieve is possible, you simply need to do the work on using the file
specification and documentation to produce a Packager - that's all.

--
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/c2210a2f-ebdb-493a-9c1f-32724ea41a50%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 process MasterCard IPM File

Alejandro Revilla
There's a length indicator in every record, you need to read that length, then call unpack, then read your next record length and so on.


--
--
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/CAAgSK%3DkZ2r7vB6_kYPdPpRg0EdWVwqFu2p_DeBxZfm7hm4hGkQ%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

Re: [jpos-users] How to process MasterCard IPM File

rishi raj
Thanks Alejandro one more question for you if iso message is in multipart how to deal with that using jpos.

On Wednesday, 24 May 2017 17:45:12 UTC+5:30, Alejandro Revilla wrote:
There's a length indicator in every record, you need to read that length, then call unpack, then read your next record length and so on.

--
<a style="font-family:garamond,serif" href="http://twitter.com/apr" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Ftwitter.com%2Fapr\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFRt8creb486OVHOJ12erdzV1NRIg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Ftwitter.com%2Fapr\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFRt8creb486OVHOJ12erdzV1NRIg&#39;;return true;">@apr

--
--
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/16751aaf-7c7b-44e2-bf8c-dda8503b093a%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 process MasterCard IPM File

Alejandro Revilla
You need to concat them first.


--
--
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/CAAgSK%3Dm8UWruAdK8fWUdNtOvkLce2HKYgtVt7jurRXkfGE9_yw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Loading...