简体   繁体   English

quickFix-发送XML消息以修复4.4验证失败

[英]quickFix - sending XML message for Fix 4.4 failing validation

while sending a FIX 4.4 xml message msgType as n - the message fails validation (yes, we perform validation while sending fix message out) - with error. 在将FIX 4.4 xml消息msgType作为n发送时-消息验证失败(是的,我们在发送修订消息时执行验证)-出错。

    quickfix.FieldException: Invalid MsgType, field=-1
    at quickfix.DataDictionary.checkMsgType(DataDictionary.java:699)
    at quickfix.DataDictionary.validate(DataDictionary.java:647)
    at quickfix.DataDictionary.validate(DataDictionary.java:624)

Searched everywhere but not able to get much help. 在各处搜索,但无法获得太多帮助。

It looks like the standard data dictionaries for FIX 4.4 in QuickFIX don't contain message type n (msgtype="n"), you will have to add the message type yourself. 看起来QuickFIX中FIX 4.4的标准数据字典不包含消息类型n(msgtype =“ n”),您必须自己添加消息类型。 Incidentally I have never seen XMLnonFIX messages before so had to look it up first! 顺便说一句,我之前从未见过XMLnonFIX消息,因此必须先查找它!

that was the issue. 这就是问题所在。 Making following ammendments to the dictionary solved the issue. 对该字典进行以下修订即可解决此问题。

<message name="XML_non_FIX" msgtype="n" msgcat="app">
<field name="XmlDataLen" required="N"/>
<field name="XmlData" required="N"/>
</message>        

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM