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
statusbits of the response, from the manual’s status table.
Structs§
- Epos
Request - A parsed request.
Constants§
- NAMESPACE
- The
epos-printnamespace. - SOAP_
NAMESPACE - The SOAP 1.1 envelope namespace.
Functions§
- error_
code - The response
codefor an outcome: empty on success, else the manual’s error code. - parse
- Parses a request: a SOAP envelope with an
epos-printbody, or a bareepos-printdocument. Elements and attribute values the manual does not define are an error, which the endpoint answers asSchemaError. - response
- The SOAP response document.
- status_
bits - The
statusbitmask for a print’s outcome and the printer’s state afterwards.