Epson TM-T20II-i Server Direct Print Users Manual for TM-i firmware ver.4.1 - Page 28

Response (Print request), Format of the response message, Basic Configuration

Page 28 highlights

Response (Print request) This section describes the response (print request) containing the print data from the Web server. TM Intelligent Printer 1 : HTTP Request (Print request) 2.2 : HTTP Response (Print request) Web Server 2.1 : Create XML from a database or other system Response data created in XML(text/xml) from the application is returned. The data also contains print data. When an invalid print request is received, the server retries a request (print request) after a specified interval. Format of the response message Print Data HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: xxx . . . Basic Configuration HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: xxx tag Print request 1 . . . tag Print request 2 . . . Note: Enclosing the ePOSPrint tag in the PrintRequestInfo tags enables sending multiple print requests to the printer. 28

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48

28
Response (Print request)
This section describes the response (print request) containing the print data from the Web server.
Response data created in XML(text/xml) from the application is returned. The data also contains print data.
When an invalid print request is received, the server retries a request (print request) after a specified interval.
Format of the response message
Basic Configuration
1 : HTTP Request (Print request)
2.2 : HTTP Response (Print request)
2.1 : Create XML from a
database or other system
TM Intelligent Printer
Web Server
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: xxx
<?xml version="1.0" encoding="utf-8"?>
<PrintRequestInfo>
.
.
.
</PrintRequestInfo>
Print Data
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: xxx
<?xml version="1.0" encoding="utf-8"?>
<PrintRequestInfo>
<ePOSPrint>
.
.
.
</ePOSPrint>
<ePOSPrint>
.
.
.
</ePOSPrint>
</PrintRequestInfo>
<ePOSPrint> tag
Print request 1
Note:
Enclosing the ePOSPrint tag in the PrintRequestInfo tags enables sending multiple print requests
to the printer.
<ePOSPrint> tag
Print request 2