{{Quickfixn}} Please Help in changing logon message
Nirjhar Jain
nirjhar.jain at commdel.net
Thu Nov 28 07:42:03 PST 2013
This will hardcode the password in the code, but I dont want that. I want
to pass it in .cfg file.
Its Ok. I found the solution for this.
I have added the password in generateLogon() in Session.cs class.
This resolved my issue.
Thanks for quick response.
Thanks & Regards,
Nirjhar Jain
Software Engineer
COMMDEL
Commdel Consulting Services P Ltd,
H-134, Sector-63, Noida - U.P. (India)
<http://www.commdel.net/> www.commdel.net
A n I S O 9 0 0 1 : 2 0 0 8 C e r t i f i e d C o m p a n y
Payment Enterprise Mobility Internet
From: quickfixn-bounces at lists.quickfixn.com
[mailto:quickfixn-bounces at lists.quickfixn.com] On Behalf Of Øyvind Sævareid
Ellefsen
Sent: Thursday, November 28, 2013 7:07 PM
To: Mailing list for QuickFIX/n
Subject: Re: {{Quickfixn}} Please Help in changing logon message
Hi, you can have something like this in your class;
public void ToAdmin(Message message, SessionID sessionID)
{
Header header = message.Header;
if (header.GetField(Tags.MsgType) == MsgType.LOGON)
{
message.SetField(new Password("<your-password-goes-here"));
message.SetField(new EncryptMethod(EncryptMethod.NONE));
message.SetField(new HeartBtInt(30));
}
}
It will then apply your password to the message sent to your counterpart.
I have seen this as very undocumented, so I had to spend some time finding
out myself.
Mvh / Brgds
Oeyvind Ellefsen
From: quickfixn-bounces at lists.quickfixn.com
<mailto:quickfixn-bounces at lists.quickfixn.com>
[mailto:quickfixn-bounces at lists.quickfixn.com] On Behalf Of Nirjhar Jain
Sent: 28. november 2013 14:34
To: 'Mailing list for QuickFIX/n'
Subject: {{Quickfixn}} Please Help in changing logon message
Hi All,
If I want to add 2 field in Logon message to be sent to the acceptor server,
that are Account and Password, then what changes I have to do in QuickFix
code.
Thanks & Regards,
Nirjhar Jain
Software Engineer
COMMDEL
Commdel Consulting Services P Ltd,
H-134, Sector-63, Noida - U.P. (India)
<http://www.commdel.net/> www.commdel.net
A n I S O 9 0 0 1 : 2 0 0 8 C e r t i f i e d C o m p a n y
Payment Enterprise Mobility Internet
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.quickfixn.com/pipermail/quickfixn-quickfixn.com/attachments/20131128/5a894b3c/attachment-0002.htm>
More information about the Quickfixn
mailing list