Epson TM-T20II-i ePOS-Print XML Users Manual - Page 54
Specifying the Print Job ID from the Application, Programming Example
View all Epson TM-T20II-i manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 54 highlights
Specifying the Print Job ID from the Application A response containing the specified print job ID will be returned when sending a request from the application by specifying the print job ID. (ePOS-Print Service Ver.4.1 or later versions) Job ID : ABC123 Print data Job ID : ABC123 Response data Programming Example Request local_printer 60000 ABC123 Hello, World! Response local_printer 60000 ABC123 54
54
Specifying the Print Job ID from the Application
A response containing the specified print job ID will be returned when sending a request from the
application by specifying the print job ID. (ePOS-Print Service Ver.4.1 or later versions)
Programming Example
Request
Response
Job ID : ABC123
Print data
Job ID : ABC123
Response data
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<parameter xmlns="http://www.epson-pos.com/schemas/2011/03/epos-print">
<devid>local_printer</devid>
<timeout>60000</timeout>
<printjobid>ABC123</printjobid>
</parameter>
</s:Header>
<s:Body>
<epos-print xmlns="http://www.epson-pos.com/schemas/2011/03/epos-print">
<text>Hello, World! </text>
<cut />
</epos-print>
</s:Body>
</s:Envelope>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<parameter xmlns="http://www.epson-pos.com/schemas/2011/03/epos-print">
<devid>local_printer</devid>
<timeout>60000</timeout>
<printjobid>ABC123</printjobid>
</parameter>
</s:Header>
<s:Body>
<response xmlns="http://www.epson-pos.com/schemas/2011/03/epos-print"
success="true" code="" status="252641302" battery="0" />
</s:Body>
</s:Envelope>