set different response header from request header

19 views
Skip to first unread message

Mehrdad

unread,
Sep 20, 2025, 12:51:04 PMSep 20
to jPOS Users

Hi

I’m using ASCIIChannel, and this packager https://github.com/jpos/jPOS/blob/v2_1_10/jpos/src/dist/cfg/packager/iso2003binary.xml

The issue is when i send request with header 0000 it expects 0000 in response and show this in log (except exact header in response with same length):

request 00002100
response 00002110


I’m looking a way to set it expect different header in response with different length, here is example: request header 0000 (4 length), response header is 11112222 (8 length)

request 00002100
response 111122222110



Any idea?
Thanks

Andrés Alcarraz

unread,
Sep 22, 2025, 8:20:00 AMSep 22
to jpos-...@googlegroups.com

You can just set the header in the response before sending it.
Something like this:

response.setHeader(....);
source.send(response);

You can also set the header in an outgoing ISOFilter if it’s always the same.

If you can share how you are sending the response now, we can give more precise suggestions.

Andrés Alcarraz
--
--
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 Google Groups "jPOS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jpos-users+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/jpos-users/fa23874f-1a70-4ab1-9c5c-0cff6e557095n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages