[Quickfix-developers] Logon with username and password
Brought to you by:
orenmnero
From: WayneGraham <wrg...@gm...> - 2014-08-19 06:53:12
|
Hi I am new to Quickfix and need help with the logon - am using VB. I am currently able to to establish the connection, and initiate the logon. However, my logon seems to be getting rejected as I have not included the username and password correctly, so immediately get logged off. Am I correct that once I have started an initiator, within the ToAdmin Sub, I need to check if the message is a Logon message and then add the username and password to the ToAdmin message. Do I also need to reset the BodyLength and Checksum after having done so? Do I then just re-send the message ? Sorry know this is probably basic stuff, but have been going round in circles for 2 days now. Here is my code - does not cause logon: Public Sub ToAdmin(message As Message, sessionID As SessionID) Implements IApplication.ToAdmin If message.GetType.ToString = "A" Then message.SetField(New Username("JHFTB1")) message.SetField(New Password("FG#T1K8")) _session.Send(message) End If End Sub Thanks for any help. Wayne -- View this message in context: http://quickfix.13857.n7.nabble.com/Logon-with-username-and-password-tp6655.html Sent from the QuickFIX - Dev mailing list archive at Nabble.com. |