juks / iso-8583-socket-queue

ISO 8583 gateway
MIT License
195 stars 111 forks source link

Question About Header #10

Closed rm3nchaca closed 6 years ago

rm3nchaca commented 7 years ago

Hello! What is the correct form to use the static header? I want to implement something that needs to set up a header for each type of message, ej: 0200: ISO002600005, 0800: ISO002600015....

Thank you! You've done an excelent work! Congratulations!!

juks commented 7 years ago

Hi!

Just wondering: what kind of system you need this for?

At the moment, there is useStaticHeader parameter. If adds static header to every single message sent to upstream. Looks like what you requested considers something more complex e.g. useStaticHeaderMap.

If there is some sort of true use case, I can consider an improvement for this.

rm3nchaca commented 7 years ago

It's a special requirement for the "logon" message, it is just like any other 0800 but with a different header. All the headers of 12 bytes, I'm going to check out the code and make tests, at this time I'm receiving a lot of ArrayIndexOutOfBoundsExceptions from my demo jPOS server!

Thanks!

juks commented 7 years ago

Do you mean sending message via SocketQueue leads to an error? If so, I suggest using --vv and --dangerous keys to see the actual payload. This really helps debugging. Also you can tweak the acual message saved in a file to the state where it does not lead to exception, then see where the problem is.

rm3nchaca commented 7 years ago

Thank you very much!