{{Quickfixn}} Please Help in changing logon message
Nirjhar Jain
nirjhar.jain at commdel.net
Thu Nov 28 21:26:38 PST 2013
Actually I have added
if (SessionID.IsSet(this.SessionID.Password))
logon.SetField(new
Fields.Password(this.SessionID.Password));
in the GenerateLogon() function. Only adding Password in QF config file had
not worked for me.
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 9:57 PM
To: Mailing list for QuickFIX/n
Subject: Re: {{Quickfixn}} Please Help in changing logon message
Hmm, I have had trouble with that earlier.
Just Password=YOURPASSWORDSTRING in each session it is needed?
-Oeyvind
From: quickfixn-bounces at lists.quickfixn.com
<mailto:quickfixn-bounces at lists.quickfixn.com>
[mailto:quickfixn-bounces at lists.quickfixn.com] On Behalf Of Grant Birchmeier
Sent: 28. november 2013 17:11
To: Mailing list for QuickFIX/n
Subject: Re: {{Quickfixn}} Please Help in changing logon message
You can put the username/password in your QF config file and then read them
from your SessionSettings object.
I would recommend this over editing the QF source.
On Thu, Nov 28, 2013 at 9:42 AM, Nirjhar Jain <nirjhar.jain at commdel.net
<mailto:nirjhar.jain at commdel.net> > wrote:
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>
[mailto: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
_______________________________________________
Quickfixn mailing list
Quickfixn at lists.quickfixn.com <mailto:Quickfixn at lists.quickfixn.com>
http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com
--
Grant Birchmeier
Connamara Systems, LLC
Made-To-Measure Trading Solutions.
Exactly what you need. No more. No less.
http://connamara.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.quickfixn.com/pipermail/quickfixn-quickfixn.com/attachments/20131129/c763df78/attachment-0002.htm>
More information about the Quickfixn
mailing list