RE: [Quickfix-developers] Extracting specific fields from a Message object
Brought to you by:
orenmnero
|
From: Steve B. <sb...@sm...> - 2006-02-22 21:22:01
|
Mike, Be sure you're retrieving the message type from the message header rather than the message body. Steve > -----Original Message----- > From: qui...@li...=20 > [mailto:qui...@li...] On=20 > Behalf Of Mike Smith > Sent: Wednesday, February 22, 2006 9:32 PM > To: qui...@li... > Subject: [Quickfix-developers] Extracting specific fields=20 > from a Message object >=20 > QuickFIX Documentation:=20 > http://www.quickfixengine.org/quickfix/doc/html/index.html > QuickFIX Support: http://www.quickfixengine.org/services.html >=20 > When implementing the public void toAdmin(Message message, SessionID > sessionID) method, I'm running into an issue. I want to pull out the > MsgType of the message into a string field, but keep getting compile > time errors. >=20 > Here is a code snippet... >=20 > MsgType msgType =3D new MsgType(); > Message.getString(msgType); >=20 > Here is the error.... > Error 2 The best overloaded method match for > 'QuickFix.Message.getString(int)' has some invalid arguments > C:\Source\QuickFix-Beta\QuickFixConsole\FIXLog.cs 20 13 > QuickFixConsole >=20 >=20 > I've tried this a number of ways, and can actually get it to=20 > compile, if > I code it this way... >=20 > MsgType msgType =3D new MsgType(); > Message.getFied(msgType); > String x =3D msgType.getValue(); >=20 > But then I get a runtime error saying the Field cannot be found. >=20 > I have verified that MsgType is in the message. When I do > message.ToString(), I can see the full message fine. >=20 > Any tips on how I can pull out specific field values from a Message > object? >=20 > Thanks, > Mike >=20 >=20 >=20 >=20 > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep=20 > through log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. =20 > DOWNLOAD SPLUNK! > http://sel.as-us.falkag.net/sel?cmd=3Dk&kid=103432&bid#0486&dat=121642 > _______________________________________________ > Quickfix-developers mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfix-developers >=20 |