Here is how I solved this stupid problem.

        MsgType messageType = new MsgType ();
        Header header = msg.getHeader ();
        char mt = '0';

        try {
            mt = header.getChar (35);
            System.out.printf ("%c\n", mt);
            //      messageType = header.getMsgType ();
            //      if (header.isSet (messageType))
            //          System.out.println ("hello");
            //          messageType = header.get (messageType);
        }
        catch (Exception e) {
            e.printStackTrace ();
        }


On Jan 6, 7:02 pm, "[email protected]"
<[email protected]> wrote:
> See, even when I am smart enough to use the Header object instead of
> the Message object I still get the error.
>
>         MsgType messageType = new MsgType ();
>         Header header = msg.getHeader ();
>
>         try {
>             if (header.isSet (messageType))
>                 messageType = header.get (messageType);
>         }
>         catch (Exception e) {
>             e.printStackTrace ();
>         }
>
> Filename.java:24: cannot find symbol
> symbol  : method isSet(quickfix.field.MsgType)
> location: class quickfix.Message.Header
>             if (header.isSet (messageType))
>                       ^
> Filename.java:25: cannot find symbol
> symbol  : method get(quickfix.field.MsgType)
> location: class quickfix.Message.Header
>                 messageType = header.get (messageType);
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Financial Information eXchange" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/FIX-Protocol?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to