49
Chapter 3 Request and Response
3
Checking Error Occurrence
Check if the <response> tag indicates "success" or "failed".
On failure, an error code is described in "code".
For details, see "Error code" (p.50).
Item Description
true Success
false Failed
<PrintResponseInfo Version="1.00">
#Success
<response xmlns="http://www.epson-pos.com/schemas/2011/03/epos-print" success="true" code=""
status="251854870" battery="0"/>
#Failed
<response xmlns="http://www.epson-pos.com/schemas/2011/03/epos-print" success="false"
code="EX_BADPORT" status="1" battery="0"/>
</PrintResponseInfo>