Skip to main content

Module epos

Module epos 

Source
Expand description

The ePOS-Print-compatible dialect (PRD section 9.1): POST /cgi-bin/epos/service.cgi?devid=<id>&timeout=<ms> with a SOAP envelope holding an epos-print document.

Implemented from the public “ePOS-Print XML User’s Manual” (element and attribute names, response codes and status bits). No vendor SDK code is used.

Modules§

status
status bits of the response, from the manual’s status table.

Structs§

EposRequest
A parsed request.

Constants§

NAMESPACE
The epos-print namespace.
SOAP_NAMESPACE
The SOAP 1.1 envelope namespace.

Functions§

error_code
The response code for an outcome: empty on success, else the manual’s error code.
parse
Parses a request: a SOAP envelope with an epos-print body, or a bare epos-print document. Elements and attribute values the manual does not define are an error, which the endpoint answers as SchemaError.
response
The SOAP response document.
status_bits
The status bitmask for a print’s outcome and the printer’s state afterwards.