Contruct Timeout Reversal

76 views
Skip to first unread message

ola

unread,
Oct 8, 2009, 9:19:35 AM10/8/09
to jPOS Users
Hello all,

Please I need your assistance towards constructing "Timout Reversal".
For example, suppose I have the following code snipnet:

ISOMsg req=new ISOMsg()
req.setMTI(200)
req.set(...)
.
.
ISORequest r = new ISORequest(req)
.
.
ISOMsg response=r.getResponse(30000);
if (response==null)
{
//handle timeout reversal
}
.

Now if it happens that there is timeout from remote switch endpoint
after 30000, and I wish to send a timeout reversal to this remote
endpoint, how do I construct my reversal 0420 message, most especially
how to generate field 90 from the original message (req) sent.
Kindly note that I did not get response from the remote server (so
response=null).
Sample snipnet will be appreciated.

Thanks!

Chhil

unread,
Oct 8, 2009, 10:11:01 AM10/8/09
to jpos-...@googlegroups.com
You sent the original request so you should have the data saved
somewhere to accommodate for fields you need to send for reversals.

-murtuza

ola

unread,
Oct 8, 2009, 11:38:00 AM10/8/09
to jPOS Users
Thanks Chill!

Yap, i have my former data in isomsg req.
I tried to contuct my field 90 using the following snipnet:

string field90=req.getMTI() + req.getString(7) + req.getString(7) +
req.getString(32) + "00000"
rev.set(90,field90)

but my confusion is that the postilion documentation says it is a
fixed length field consisting of 5 data elements:

Original message type (positions 1 - 4) - the message type identifier
of the original message of the transaction being reversed.

Original systems trace audit number (positions 5 - 10) - the systems
trace audit number of the original message.

Original transmission date and time (positions 11 - 20) - the
transmission date and time of the original message

Original acquirer institution ID code (position 21 - 31) - the
acquirer institution ID code of the original message (right justified
with leading zeroes).

Original forwarding institution ID code (position 32 - 42) - the
forwarding institution ID code of the original message (right
justified with leading zeroes).

but i dont have Originsl forwarding institution id code sent with my
0200 message (since this is optional), so pls, how do i complete the
data for position 32-42?

Expecting reply!

Thanks


On Oct 8, 3:11 pm, Chhil <chil...@gmail.com> wrote:
> You sent the original request so you should have the data saved  
> somewhere to accommodate for fields you need to send for reversals.
>
> -murtuza
>
> On Oct 8, 2009, at 6:49 PM, ola <ollysof...@gmail.com> wrote:
>
>
>
>
>
> > Hello all,
>
> > Please I need your assistance towards constructing "Timout Reversal".
> > For example, suppose I have the following code snipnet:
>
> > ISOMsg req=new ISOMsg()
> > req.setMTI(200)
> > req.set(...)
> > .
> > .
> > ISORequest r = new ISORequest(req)
> > .
> > .
> > ISOMsg response=r.getResponse(30000);
> > if (response==null)
> > {
> >  //handle timeout reversal
> > }
> > .
>
> > Now if it happens that there is timeout from remote switch endpoint
> > after 30000, and I wish to send a timeout reversal to this remote
> > endpoint, how do I construct my reversal 0420 message, most especially
> > how to generate field 90 from the original message (req) sent.
> > Kindly note that I did not get response from the remote server (so
> > response=null).
> > Sample snipnet will be appreciated.
>
> > Thanks!- Hide quoted text -
>
> - Show quoted text -

chhil

unread,
Oct 8, 2009, 12:22:57 PM10/8/09
to jpos-...@googlegroups.com
So sending 0's doesn't work for you?, meaning the Postilion system
declines the transaction or cannot locate the original transaction or
you have not tried sending 0's?

When you say Postilion, which particular Source Node interface are you
talking about (perhaps Postbridge) ?

-chhil

Mark Salter

unread,
Oct 8, 2009, 12:29:37 PM10/8/09
to jpos-...@googlegroups.com
ola wrote:
> but i dont have Originsl forwarding institution id code sent with my
> 0200 message (since this is optional), so pls, how do i complete the
> data for position 32-42?
The interface specification for the host you are connecting with will
tell you what to do?

If you don't have a value needed in the original, then you might specify
0's or blanks instead? That is up to the recipient to define for you.

>
> Expecting reply!
Hmmm.

--
Mark

ola

unread,
Oct 9, 2009, 10:23:43 AM10/9/09
to jPOS Users
Hello mark & Chill, thanks.

It has worked now, I just padded the fields with 11 0's.

Thanks!
Reply all
Reply to author
Forward
0 new messages