× Discuss about OFS, Temenos Connectors, Various OFS modes, OFS with Versions, OFS performance, Logging, EB.PHANTOM, OFS.SOURCE etc…

OFS - Possible to reject a mesg thru IN.MSG.RTN?

  • gm.saran
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
12 years 2 months ago #12629 by gm.saran
Hi,

is it possible to reject an incoming mesg through the routine attached in IN.MSG.RTN? we need to carry out some validations in the incoming message coming frm an ext system thru TCServer. if it fails, is it possible to reject and respond directly through the routine attached in IN.MSG.RTN?

Please Log in or Create an account to join the conversation.

More
12 years 2 months ago - 12 years 2 months ago #12630 by durai611
IN.MSG.RTN is used to convert or map the data received into the required OFS message format. If I am not mistaken you can't reject the message here.
Last edit: 12 years 2 months ago by durai611. Reason: Review

Please Log in or Create an account to join the conversation.

  • gm.saran
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
12 years 2 months ago #12631 by gm.saran
Tnx. so when a mesg is received at TCServer end, it has to reach T24 to know the fate of it. is my understanding ryt?

Please Log in or Create an account to join the conversation.

  • praveenb.chennai
  • praveenb.chennai's Avatar
  • Offline
  • Senior Member
  • Senior Member
More
12 years 2 months ago - 12 years 2 months ago #12667 by praveenb.chennai
Replied by praveenb.chennai on topic OFS - Possible to reject a mesg thru IN.MSG.RTN?
Hi Saran,

If you want to do validations like checking the format of ID or number of characters in the message, i think you can do it by adding a routine in IN.MSG.RTN but not sure how to display the results... may be you can write the output of the validations in a flat file of a directory.

Yes. The message has to hit T24 to get a response. You can also try adding the validations you want to do in the version routines.
Last edit: 12 years 2 months ago by praveenb.chennai. Reason: explaining more..

Please Log in or Create an account to join the conversation.

More
12 years 1 month ago #12983 by sourav1986
Replied by sourav1986 on topic OFS - Possible to reject a mesg thru IN.MSG.RTN?
Please mention your expectation clearly, we can do it N number of ways,

1) by modifying the in message
2) addition rtn in version level
but the point is what kind of transaction u gonna perform and what kind of updation u r expecting ?

Please Log in or Create an account to join the conversation.

  • gm.saran
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
12 years 3 weeks ago #13003 by gm.saran
I would like to validate the incoming message thru IN.MSG.RTN (coming from an external interface through tcserver); if there is any issue in the incoming message, i would like to reject it directly thru the IN.MSG.RTN (Dont want the processing to go ahead where T24 processes it and then responds)

incoming messages can be for ENQUIRY or for FT

Please Log in or Create an account to join the conversation.

More
11 years 6 months ago #13997 by srajput
Hi Saran,

Is your problem solved or still looking for answer? Please do let me know which T24 release you are working on.

Everyone response above is right somehow but YES you can do it from IN.MSG.RTN but response will always go through OUT.MSG.RTN without hitting T24 as I just completed one interface in which I am checking message type and security to ensure that message is coming from trusted source (meaning only from external system for which I created interface) so if message type is wrong then I send Error message to external system as SECURITY VIOLATION ---- API ERROR this my generated error and my transaction do not hit T24. I generate this error in IN.MSG.RTN and send it through OUT.MSG.RTN.

Please Log in or Create an account to join the conversation.

  • gm.saran
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
11 years 6 months ago - 11 years 4 months ago #14004 by gm.saran
No, i haven't got it solved. Could you share the info, if possible, on how you are rejecting the incoming messages w/o hitting T24...
Last edit: 11 years 4 months ago by gm.saran.

Please Log in or Create an account to join the conversation.

More
11 years 4 months ago #14504 by srajput
Hi Saran,

Is your issue solved?

What I was saying that;

1. Create i_common that will be use in IN and OUT routine of OFS
2. then do validation of the msg in IN routine and if there is an error then null your incoming msg variable and save error in common variable that you defined in your own created I_common file.
3. check and extract value or error from common variable in OUT routine and assign that value of variable to your incoming variable of OUT routine and also assign null to common variable.

I did this in one of the interface and it is perfectly running on production system of my client.
The following user(s) said Thank You: gm.saran

Please Log in or Create an account to join the conversation.

  • gm.saran
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
11 years 4 months ago #14505 by gm.saran
Thanks for the clue; will try and update!

Please Log in or Create an account to join the conversation.

  • shelistot@gmail.com
  • Offline
  • New Member
  • New Member
More
7 months 3 weeks ago #24435 by shelistot@gmail.com
Replied by shelistot@gmail.com on topic OFS - Possible to reject a mesg thru IN.MSG.RTN?
This is a sample routine, i would like to convert input currency from ZiG to ZWL. If any other currency comes it should be ignored. kindly guide me on the steps I need to take in OFS.SOURCE to achieve this I'm on TAFC R14.

SUBROUTINE SN.FORCE.ZiG.CONVERSION.VER(OUT.MSG)
 
 INSERT I_COMMON
 INSERT I_EQUATE
 
 IF DEBIT.CURRENCY = "ZiG" THEN 
 DEBIT.CURRENCY = 'ZWL'
 
RETURN
END

Please Log in or Create an account to join the conversation.

  • VK
  • VK's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Globus:G9-G13|TAFC:R05-R23|TAFJ:R19,R23,R24:test
More
7 months 3 weeks ago #24438 by VK
Hi
do I understand you correctly that you want the OFS message to be "canceled" if currency isn't "ZiG" ?

Cheers
VK

Please Log in or Create an account to join the conversation.

  • shelistot@gmail.com
  • Offline
  • New Member
  • New Member
More
7 months 3 weeks ago #24439 by shelistot@gmail.com
Replied by shelistot@gmail.com on topic OFS - Possible to reject a mesg thru IN.MSG.RTN?
No, I want the message to be amended to "ZWL" instead of "ZiG"

so ordinarily it should be ECHANGE(CURRENCY, "ZiG" , "ZWL")

Please Log in or Create an account to join the conversation.

  • VK
  • VK's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Globus:G9-G13|TAFC:R05-R23|TAFJ:R19,R23,R24:test
More
7 months 3 weeks ago #24440 by VK
Hi
see my reply in your other (same) request. Let's continue there.
 

Cheers
VK

Please Log in or Create an account to join the conversation.

Time to create page: 0.118 seconds