Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Add header to ISO message
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  9 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Suranga  
View profile  
 More options Jul 2, 3:46 am
From: Suranga <suranga.her...@gmail.com>
Date: Thu, 2 Jul 2009 00:46:15 -0700 (PDT)
Local: Thurs, Jul 2 2009 3:46 am
Subject: Add header to ISO message

I'm going to communicate with Base24 BIC interface (1987 standard) and
I need to add a header  to ISO message .

Header = "ISO 020000011"

Rest is primary bit map and data elements . So could some one kindly
tell me a way to add above header to ISO message.

Many Thanks.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chhil  
View profile  
 More options Jul 2, 5:11 am
From: Chhil <chil...@gmail.com>
Date: Thu, 2 Jul 2009 14:41:23 +0530
Local: Thurs, Jul 2 2009 5:11 am
Subject: Re: Add header to ISO message
Header adding has been covered on this list. Search the list and you  
will find samples of doing it via java code or through configuration  
files

-chhil

On Jul 2, 2009, at 1:16 PM, Suranga <suranga.her...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Suranga  
View profile  
 More options Jul 2, 6:57 am
From: Suranga <suranga.her...@gmail.com>
Date: Thu, 2 Jul 2009 03:57:15 -0700 (PDT)
Local: Thurs, Jul 2 2009 6:57 am
Subject: Re: Add header to ISO message
Hi All,

Thanks Chhil ,

I used ISOMessage.setHeader() method to add a header to ISO message

// Code

 String header="ISO010100011";

   byte[] bytearray=header.getBytes();

   m.setHeader(bytearray);

// End code

but when i see message at a log I can message header as
<header>49534F303130313030303131</header> .It is obvious that I can
see it in that way . But I want to send header as a String
( ISO010100011 ) . So is there a any way to handle the header in that
way. Kindly assist me .

Many Thanks.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
chhil  
View profile  
 More options Jul 2, 7:02 am
From: chhil <chil...@gmail.com>
Date: Thu, 2 Jul 2009 16:32:59 +0530
Local: Thurs, Jul 2 2009 7:02 am
Subject: Re: Add header to ISO message

I believe the data being sent on the wire be fine....this is the data that
is being printed and if you look at the code of Baseheaderthe dump is doing
a hexstring of the header else you wont see the special unprintable chars...

  public void dump (PrintStream p, String indent) {
        if (header != null) {
            p.println (
                indent
              + "<header>" + ISOUtil.hexString (header) + "</header>"
            );
        }
    }


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Suranga  
View profile  
 More options Jul 2, 7:31 am
From: Suranga <suranga.her...@gmail.com>
Date: Thu, 2 Jul 2009 04:31:25 -0700 (PDT)
Local: Thurs, Jul 2 2009 7:31 am
Subject: Re: Add header to ISO message
Thanks again for you clarification.

I got to know that we can set a header to the channel as a example

new NCCChannel(server,port,packager,header) but some channels are not
supported and I'm using BASE24TCPChannel which is also not supported.
is it same with  ISOMessage.setHeader()  or what is the difference .

Many Thanks,
Suranga.

On Jul 2, 5:02 pm, chhil <chil...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David Bergert  
View profile  
 More options Jul 2, 8:00 am
From: David Bergert <dbergert...@gmail.com>
Date: Thu, 2 Jul 2009 07:00:48 -0500
Local: Thurs, Jul 2 2009 8:00 am
Subject: Re: Add header to ISO message

http://www.jpos.org/doc/javadoc/org/jpos/iso/ISOMsg.html#setHeader%28...
[]%29

David Bergert, CISSP, CISA, CPISM/A
www.paymentsystemsblog.com

On Jul 2, 2009, at 2:46 AM, Suranga wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mark Salter  
View profile  
 More options Jul 2, 8:43 am
From: Mark Salter <marksal...@talktalk.net>
Date: Thu, 02 Jul 2009 13:43:18 +0100
Local: Thurs, Jul 2 2009 8:43 am
Subject: Re: Add header to ISO message

Suranga wrote:
> new NCCChannel(server,port,packager,header) but some channels are not
> supported and I'm using BASE24TCPChannel which is also not supported.
> is it same with  ISOMessage.setHeader()  or what is the difference .

Yeah, it can be a bit confusing; just like this sentence is.

The header on the Channel would be the place to specify one that is
fixed for the life of the channel.

The ISOMsg could be given a header, but especially when the header
varies for each message.

If you have a header that never varies, you can hope your chosen Channel
takes a header in on it's constructor (or modify it to).

The BaseChannel class checks for a specific ISOMsg.header and use it, if
not it will use the Channel.header - if one is present.

BaseChannel.setOverrideHeader(true) could be used to reverse the
precedence ISOMsg.header has over Channel.header.

--
Mark


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Suranga  
View profile  
 More options Jul 3, 2:08 am
From: Suranga <suranga.her...@gmail.com>
Date: Thu, 2 Jul 2009 23:08:26 -0700 (PDT)
Local: Fri, Jul 3 2009 2:08 am
Subject: Re: Add header to ISO message
Thanks all for clarify me about all the information and I manged to
add header to message.

One thing I want to know is

Before sending a message through a channel is it necessary to add
packager and pack the message or what is the purpose. Because after
set packager and pack the message I can only see bit map on message
logger (I have already uncommented the entries in dump method  ) Kidly
advice.

methods
--------------
ISOMsg.setPackager();
ISOMsg.pack();

Sample OutPut
-----------------------
<isomsg>
  <header>49534F303031313031313534</header>
  <field id="0" value="0800"/>
  <field id="bitmap" value="{7, 11, 33, 70, 94}" type="bitmap"/>
  <field id="7" value="123"/>
  <field id="11" value="123"/>
  <field id="33" value="123"/>
  <field id="70" value="123"/>
  <field id="94" value="123"/>
</isomsg>

Many Thanks,
Suranga

On Jul 2, 6:43 pm, Mark Salter <marksal...@talktalk.net> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mark Salter  
View profile  
 More options Jul 3, 3:01 am
From: Mark Salter <marksal...@talktalk.net>
Date: Fri, 03 Jul 2009 08:01:15 +0100
Local: Fri, Jul 3 2009 3:01 am
Subject: Re: [jpos-users] Re: Add header to ISO message

Suranga wrote:
> Thanks all for clarify me about all the information and I manged to
> add header to message.

> One thing I want to know is

You should get the programmers guide - honestly.

> Before sending a message through a channel is it necessary to add
> packager and pack the message or what is the purpose.

An ISOMsg needs a packager if it is going through a Channel.

The Channel will be calling the ISOMsg.pack() method you see, which in
turn will call it's Packager.pack() method to gather the raw bytes for
the Channel to send over the network.

--
Mark


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google