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 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
|
Sample Output
<?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>