Select your printer model
<service_data>
Sends and receives data to and from the OFSC-Print service to enable the OFSC-Print service to control the printer.
Request
Element |
Data type |
Description |
---|---|---|
sequence |
string |
Specifies an arbitrary figure to identify relationship between the request and response. |
service_id |
string |
Fixed to "OFSC” |
data |
string |
Specifies data to send. |
data
Child element |
Data type |
Description |
---|---|---|
type |
string |
Fixed to "print” |
timeout |
int |
Specifies the timeout for the request in milliseconds. Value: 1000 to 60000 (integer) |
printdata |
string |
Specifies XML data for DeviceExecuteRequest of OFSC. |
Sample program
<service_data> <sequence>123</sequence> <service_id>OFSC</service_id> <data> <type>print</type> <timeout>10000</timeout> <printdata> <DeviceExecuteRequest xmlns="http://www.ofsc.org/namespace/Device/2008/11" FixVersion="0" MajorVersion="1" MinorVersion="0"> <ARTSHeader> <MessageID>0</MessageID> <DateTime>2011-03-08T12:34:56+09:00</DateTime> <Requestor>Yamada</Requestor> <WorkstationID>HT10</WorkstationID> </ARTSHeader> <Device> . . </DeviceExecuteRequest> </printdata> </data> </service_data> |
Response
Element |
Data type |
Description |
---|---|---|
sequence |
string |
Sequence value specified in the request |
service_id |
string |
Fixed to "OFSC” |
data |
string |
XML data of DeviceExecuteResponse |
data
Child element |
Data type |
Description |
---|---|---|
type |
string |
Fixed to “service_data” |
resultdata |
string |
Result of OFSC printing |
Sample program
<service_data> <sequence>123</sequence> <service_data> <sequence>123</sequence> <service_id>OFSC</service_id> <data> <response> <DeviceExecuteRespnse> . . </DeviceExecuteRespnse> </response> </data> </service_data> |
Supplementary explanation
- Cannot be used with ePOS-Device XML (English version).
- OFSC-Print is an XML-based print method designed for POS/Order Entry Systems for the
food service
industry. It controls devices in accordance with the OFSC (Open Foodservice System Consortium) device connection standard. Refer to the following URL for details of the OFSC device connection standard:
http://www.ofsc.jp/ - The figure specified in the sequence element of the request will be passed to sequence of the <error> message when the response is generated or a transmission error occurs.
- Contents of the child element of printdata and resultdata are defined by the OFSC-Print service. Refer to the OFSC-Print User's Manual for the details.
Quick Access
- [Name]
- [Format]
- [Range]
- [Description]
- [Notes]
- Introduction
- help
- Message
- CommunicationBox Messages
- Device Messages
- DeviceHubTerminal
- BarcodeScanner
- Printer
- <type>print</type>
- <type>onxmlresult</type>
- <epos-print>
- <response>
- <text>
- <feed>
- <image>
- <logo>
- <barcode>
- <symbol>
- <hline>
- <vline-begin>
- <vline-end>
- <page>
- <area>
- <direction>
- <position>
- <line>
- <rectangle>
- <cut>
- <pulse>
- <sound>
- <command>
- <layout>
- <recovery>
- <reset>
- <batch-begin>
- <batch-end>
- <rotate-begin>
- <rotate-end>
- HybridPrinter
- <type>lock</type>
- <type>unlock</type>
- <type>print</type>
- <type>onxmlresult</type>
- <type>slipwaitinsertion</type>
- <type>slipprint2</type>
- <type>slipcancel</type>
- <type>endorsewaitinsertion</type>
- <type>endorseprint2</type>
- <type>endorsecancel</type>
- <type>validationwaitinsertion</type>
- <type>validationprint2</type>
- <type>validationcancel</type>
- <type>micrread</type>
- <type>micrcleaning</type>
- <type>micrcancel</type>
- <type>eject</type>
- <type>onreceive</type>
- CustomerDisplay
- Keyboard
- POSKeyboard
- MSR
- SerialDevice
- Storage
- OtherPeripheral
- Appendix