Select your printer model

Parameters are refined by the selected printer.

<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]

ePOS-Device XML includes patented or patent pending functions. The contents must not be disclosed to third parties.


ePOS-Device XML

Jump to the top