[jpos-users] Contruct Timeout Reversal

View: New views
6 Messages — Rating Filter:   Alert me  

[jpos-users] Contruct Timeout Reversal

by ola-11 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


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!
--~--~---------~--~----~------------~-------~--~----~
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 jpos-users@...
To unsubscribe, send email to jpos-users+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/jpos-users
-~----------~----~----~----~------~----~------~--~---


[jpos-users] Re: Contruct Timeout Reversal

by chhil :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


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 <ollysoft18@...> 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!
> >

--~--~---------~--~----~------------~-------~--~----~
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 jpos-users@...
To unsubscribe, send email to jpos-users+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/jpos-users
-~----------~----~----~----~------~----~------~--~---


[jpos-users] Re: Contruct Timeout Reversal

by ola-11 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


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...@...> 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...@...> 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 -
--~--~---------~--~----~------------~-------~--~----~
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 jpos-users@...
To unsubscribe, send email to jpos-users+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/jpos-users
-~----------~----~----~----~------~----~------~--~---


[jpos-users] Re: Contruct Timeout Reversal

by chhil :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


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

On Thu, Oct 8, 2009 at 9:08 PM, ola <ollysoft18@...> wrote:

>
> 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...@...> 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...@...> 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 -
> >
>

--~--~---------~--~----~------------~-------~--~----~
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 jpos-users@...
To unsubscribe, send email to jpos-users+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/jpos-users
-~----------~----~----~----~------~----~------~--~---


[jpos-users] Re: Contruct Timeout Reversal

by Mark Salter-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


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

--~--~---------~--~----~------------~-------~--~----~
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 jpos-users@...
To unsubscribe, send email to jpos-users+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/jpos-users
-~----------~----~----~----~------~----~------~--~---


[jpos-users] Re: Contruct Timeout Reversal

by ola-11 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hello mark & Chill, thanks.

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

Thanks!

On Oct 8, 5:29 pm, Mark Salter <marksal...@...> wrote:

> 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
--~--~---------~--~----~------------~-------~--~----~
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 jpos-users@...
To unsubscribe, send email to jpos-users+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/jpos-users
-~----------~----~----~----~------~----~------~--~---