Validating Results

The following lines in the configuration file enable validation for everything except field contents.

validation=true
fieldTypeValidation=false

Test the validation using the service emitter channel. The following message generates a fail status document because it is missing required fields:

<FIXML v="4.4" r="20030618" s="20040109">
     <Order ID="90001008" Side="1" TxnTm="2006-02-17T10:00:00Z" Typ="1"
          Px="120" TgtStrategy="1">
          <Hdr SID="TESTI" TID="TESTA" SSub="30737" PosRsnd="Y"
               Snt="2003-02-04T08:46:14Z" SeqNum="4" />
     </Order>
</FIXML>

The following document has an invalid value for the Side field. The emitter will not catch this as an error because fieldTypeValidation is set off. However, when it sends this document to the test server, the test server shows an error because the test server has all validations on.

<FIXML v="4.4" r="20030618" s="20040109">
  <Order ID="90001008" Side="999999" TxnTm="2006-02-17T10:00:00Z" Typ="1"
    Px="120" TgtStrategy="1">
    <Hdr SID="TESTI" TID="TESTA" SSub="30737" PosRsnd="Y"
        Snt="2003-02-04T08:46:14Z" SeqNum="4" />
    <Instrmt Sym="TESTB" />
    <OrdQty Qty="4000" />
  </Order>
</FIXML>

iWay Software