Epson TM-m50II ePOS-Print XML Users Manual - Page 59
Programming Example, Printing Process, Request, Response
View all Epson TM-m50II manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 59 highlights
Chapter 3 Programming Guide - Using the Spooler Function Programming Example Printing Process Request local_printer 60000 ABC123 Hello, World! Response local_printer ABC123 • When applications do not specify the print job IDs, the ePOS-Print Service I/F assigns print job IDs. • As the printing process has not been performed at this time, success will be set to "true," code to "" (left empty), status to 0x00000002 or 0x80000000 and battery to "0". 59
59
Chapter 3
Programming Guide - Using the Spooler Function
Programming Example
Printing Process
Request
Response
<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>
<printjobid>ABC123</printjobid>
</parameter>
</s:Header>
<s:Body>
<response xmlns="http://www.epson-pos.com/schemas/2011/03/epos-print"
success="true" code="" status="2" battery="0" />
</s:Body>
</s:Envelope>
•
When applications do not specify the print job IDs, the ePOS-Print Service I/F assigns print job IDs.
•
As the printing process has not been performed at this time, success will be set to "true," code to "" (left
empty), status to 0x00000002 or 0x80000000 and battery to "0".