Skip to main content
Skip table of contents

BinaryFileReader

BinaryFileReader reads the binary content which is provided as input and converts it into XML message. The message contains CRC info and other details. 

The source code for this component is available with the installer. 

The component parses binary data (128 bytes at a time), populates an XML with the parsed data and sends it as output.

Configuration

Interaction Configurations


Figure 1: Interaction Configuration panel

Attributes

  • For the Expert Properties such as Validate Input, Cleanup resources (excluding connection) after each document and Target Namespace, refer respective sections in Common Configurations page.
  • For Monitoring configuration property too, refer the respective section in the above-mentioned page.

Scheduler Configurations

Please refer the respective section in Common Configurations page.

Transport Configurations

Please refer the respective section in Common Configurations page.

Transport Configurations panel will be available only if scheduling is enabled in Scheduler Configurations panel.

Error Handling

Actions to be taken on the event of error occurrence can be configured here.

Please refer to the sections Request Processing Error and Invalid Request Error in the Error Handling section of Common Configurations page for details.

Functional Demonstration

Scenario

Sample Schema

XML
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="TARGET_NS_" targetNamespace="_TARGET_NS" attributeFormDefault="qualified" elementFormDefault="qualified">
   <xs:element name="XMODEM_CRC">
      <xs:complexType>
         <xs:sequence>
            <xs:element name="TRANREC_HEADER" minOccurs="1" maxOccurs="1">
               <xs:complexType>
                  <xs:sequence>
                     <xs:element name="cLexisIdStr" type="xs:string" minOccurs="0" maxOccurs="1" />
                     <xs:element name="lTotalCashAmount" type="xs:string" minOccurs="0" maxOccurs="1" />
                     <xs:element name="lTotalBillStackerAmount" type="xs:string" minOccurs="0" maxOccurs="1" />
                     <xs:element name="lTotalCardAmount" type="xs:string" minOccurs="0" maxOccurs="1" />
                     <xs:element name="lTotalCashBagAmount" type="xs:string" minOccurs="0" maxOccurs="1" />
                     <xs:element name="iMeterFwVerMajor" type="xs:string" minOccurs="0" maxOccurs="1" />
                     <xs:element name="iMeterFwVerMinor" type="xs:string" minOccurs="0" maxOccurs="1" />
                  </xs:sequence>
               </xs:complexType>
            </xs:element>
            <xs:element name="TRANREC_DATA" minOccurs="0" maxOccurs="unbounded">
               <xs:complexType>
                  <xs:sequence>
                     <xs:element name="lEnterTime" type="xs:string" minOccurs="0" maxOccurs="1" />
                     <xs:element name="lExittime" type="xs:string" minOccurs="0" maxOccurs="1" />
                     <xs:element name="lTicketNum" type="xs:string" minOccurs="0" maxOccurs="1" />
                  </xs:sequence>
               </xs:complexType>
            </xs:element>
         </xs:sequence>
      </xs:complexType>
   </xs:element>
</xs:schema>

Sample Input

12 11 33 42 45 AB CD 03 15 68 69 8C DE F0 12 34
94 82 35 63 A4 3D A4 12 34 56 78 33 5A BC 43 44
34 34 CF 94 39 53 5C C0 56 FE EE 04 59 34 66 43
45 43 50 66 94 02 DF E9 34 93 42 56 03 35 63 60
34 09 58 96 85 48 50 94 58 04 92 9F EC DF F0 40
45 99 05 45 AB 35 65 99 34 0A BF C4 05 45 35 56
85 93 45 BD C4 59 52 30 49 85 6C 84 53 04 95 04
04 95 80 34 89 50 94 85 03 68 09 49 50 34 95 25
45 6F E0 34 24 05 96 09 9A BC DF F0 E9 33 BB 05
49 05 94 09 45 09 20 34 90 34 95 CC BD FE E0 39
38 9B 12 04 59 05 04 94 03 49 65 98 83 95 AB FD
AB 29 48 C9 43 89 23 54 C4 09 50 43 94 59 04 59
34 90 85 90 45 89 45 09 20 39 40 4C EB DF E9 84
49 03 58 92 58 20 39 50 39 50 93 04 90 05 85 50
AB 28 73 C3 89 23 89 23 47 84 90 23 48 09 43 23
34 82 59 08 42 39 58 95 80 49 68 94 58 49 96 04

Sample Output

XML
<?xml version="1.0" encoding="UTF-8"?>
<ns1:XMODEM_CRC xmlns:ns1="http://www.fiorano.com/fesb/activity/BinaryFileReader1/Out">
   <ns1:TRANREC_HEADER>
      <ns1:cLexisIdStr>##3BE</ns1:cLexisIdStr>
      <ns1:lTotalCashAmount>4025479151</ns1:lTotalCashAmount>
      <ns1:lTotalBillStackerAmount>4025479151</ns1:lTotalBillStackerAmount>
      <ns1:lTotalCardAmount>3217014719</ns1:lTotalCardAmount>
      <ns1:lTotalCashBagAmount>4025479151</ns1:lTotalCashBagAmount>
      <ns1:iMeterFwVerMajor>49135</ns1:iMeterFwVerMajor>
      <ns1:iMeterFwVerMinor>61373</ns1:iMeterFwVerMinor>
   </ns1:TRANREC_HEADER>
   <ns1:TRANREC_DATA>
      <ns1:lEnterTime>11/15/2080 01:58:21</ns1:lEnterTime>
      <ns1:lExittime>12/09/2081 23:11:59</ns1:lExittime>
      <ns1:lTicketNum>4025479151</ns1:lTicketNum>
   </ns1:TRANREC_DATA>
   <ns1:TRANREC_DATA>
      <ns1:lEnterTime>07/25/2107 04:39:11</ns1:lEnterTime>
      <ns1:lExittime>07/25/2107 04:39:11</ns1:lExittime>
      <ns1:lTicketNum>3183328701</ns1:lTicketNum>
   </ns1:TRANREC_DATA>
</ns1:XMODEM_CRC>


JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.