Re: [Quickfix-developers] Field order
Brought to you by:
orenmnero
|
From: Oren M. <or...@qu...> - 2006-07-13 17:28:51
|
Yeah, if you want to guarantee that a field comes before any body =20 fields, you must place it in the header with message.getHeader=20 ().setField. If you do not do this it may come before any body =20 fields, but you are just getting lucky, and that my change if you add =20= additional fields. To be sure, always specifically add to the header. --oren On Jul 13, 2006, at 11:24 AM, Scott Riopelle wrote: > QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/=20 > html/index.html > QuickFIX Support: http://www.quickfixengine.org/services.html > > How are you generating the message? I also have had to add field =20 > 50 to my outgoing messages, and just included > > a_oMessage.setField(FIX::SenderSubID(GetVendorParameter=20 > (PARAMETER_SENDERCOMPID).GetBuffer())); > > in my toApp() and toAdmin() functions. > > It adds to the header just fine. You may be able to force it with =20 > something like > > a_oMessage.getHeader().setField(50, "VALUE"); > > but, I haven't tried this. > > (Note: I am assuming header automatically gets placed at the front =20 > of the message, someone correct me if this isn't the case) > > = -Scott > > -----Original Message----- > From: qui...@li... =20 > [mailto:qui...@li...] On =20 > Behalf Of Lidia L=F3pez Cuesta > Sent: Thursday, July 13, 2006 11:58 AM > To: qui...@li... > Subject: [Quickfix-developers] Field order > > QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/=20 > html/index.html > QuickFIX Support: http://www.quickfixengine.org/services.html > > Hi all, > > I am trying to send a DataMarketRequest message, I only want to =20 > read the > futures for IBEX, so I need to use the fiels 50 and 48 to filter the > information received. > > I generated following message: > 8=3DFIX.=20 > 4.4=B79=3D138=B735=3DV=B734=3D2=B749=3DXXXX=B752=3D20060712-10:12:21.937= =B756=3DMEFF=B748=3D21=B750=3D=20 > XXX=B755=3D[N/A]=20 > =B757=3DM3=B7146=3D1=B7262=3D0000001=B7263=3D1=B7264=3D0=B7265=3D0=B7267= =3D1=B7269=3D0=B7461=3DFXXXSX=B710=3D2=20 > 52=B7 > > and the answer is: > 8=3DFIX.=20 > 4.4=B79=3D127=B735=3D3=B734=3D3=B752=3D20060712-10:15:01=B749=3DMEFF=B75= 0=3DM3=B756=3DA880=B757=3D351=B7=20 > 45=3D2=B7373=3D99=B758=3D%MFEMC1FNS-Field > not supported or misplaced [48=3D21]=B710=3D081=B7 > > I have asked to MEFF (which provides the connection to market using =20= > fix) and > the technical service told me that the problem is the field order. =20 > He said > that I must generate the field 50 before the 48 because 50 is a =20 > header field > and It must be before. > > The problem is that I am using a QuickFix44. message and I can't =20 > (or I > don't know how) control the field order. > > Lidia > > > > > ----------------------------------------------------------------------=20= > --- > Using Tomcat but need to do more? Need to support web services, =20 > security? > Get stuff done quickly with pre-integrated technology to make your =20 > job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache =20 > Geronimo > http://sel.as-us.falkag.net/sel?=20 > cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D121642 > _______________________________________________ > Quickfix-developers mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfix-developers > > > ----------------------------------------------------------------------=20= > --- > Using Tomcat but need to do more? Need to support web services, =20 > security? > Get stuff done quickly with pre-integrated technology to make your =20 > job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache =20 > Geronimo > http://sel.as-us.falkag.net/sel?=20 > cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D121642 > _______________________________________________ > Quickfix-developers mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfix-developers > |