Intermec PX6i Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 92

XMLReady™ Printing

Page 92 highlights

Chapter 8-Advanced Features 8.3 XML Printing Printers running Direct Protocol v8.60 are XMLReady™, and have support for Oracle MSCA/WMS and SAP Auto-ID Infrastucture (AII) XML document types. XML data can be sent over the network to the printer, triggering a label (or labels) to be printed with the variables defined in the layout file substituted by values defined in the XML information. The basics to enable an XML-printing system are: 1 Create a layout file, where variables are enclosed with slashes. You can do this using LabelShop in conjunction with XMLLabel software, or manually. For example: PP 100,100 PT "Intermec understands " + /my variable/ 2 Save this file with the .lbx suffix, for example "XmlLayout.lbx". Then transfer it to the printer, for example with FTP. 3 Configure your host to send data by TCP to the printer's port 9200, or alternatively, through HTTP POST to the URL "/xml/pv" with Content-Length set or chunked Transfer-Encoding used. 4 Send your XML formatted information with the method chosen in step 3. Oracle: Oracle XML SAP AII: SAP XML The label is printed when the XML data is finished parsing, or when the connection is closed. 84 Intermec Direct Protocol v.8.60-Programmer's Reference Manual

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134

84
Intermec Direct Protocol v.8.60—Programmer’s Reference Manual
Chapter 8—Advanced Features
8.3 XML Printing
Printers running Direct Protocol v8.60 are XMLReady™, and have
support for Oracle MSCA/WMS and SAP Auto-ID Infrastucture (AII)
XML document types. XML data can be sent over the network to the
printer, triggering a label (or labels) to be printed with the variables
defined in the layout file substituted by values defined in the XML
information. °e basics to enable an XML-printing system are:
1
Create a layout file, where variables are enclosed with slashes. You can do this using LabelShop
in conjunction with XMLLabel software, or manually. For example:
PP 100,100
PT "Intermec understands " + /my variable/
2
Save this file with the .lbx suffix, for example "XmlLayout.lbx". Then transfer it to the printer,
for example with FTP.
3
Configure your host to send data by TCP to the printer's port 9200, or alternatively, through
HTTP POST to the URL "/xml/pv" with Content-Length set or chunked Transfer-Encoding used.
4
Send your XML formatted information with the method chosen in step 3.
Oracle:
<?xml version="1.0" standalone="no"?>
<!DOCTYPE labels SYSTEM "label.dtd">
<labels _FORMAT="XmlLayout.lbx" _QUANTITY="1">
<label>
<variable name="my variable">Oracle XML</variable>
</label>
</labels>
SAP AII:
<?xml version="1.0"?>
<Command xmlns:xsi="http://www.w3.org/2001/XMLSchema- instance"
xsi:noNamespaceSchemaLocation="Command.xsd">
<WriteTagData readerId="Writer_Device">
<Item>
<FieldList format="XmlLayout.lbx" quantity="1">
<Field name="my variable">SAP XML</Field>
</FieldList>
</Item>
</WriteTagData>
</Command>
°e label is printed when the XML data is finished parsing, or when the
connection is closed.