Zebra Enterprise Connector-Guide
Zebra Enterprise Connector-Guide
User Guide
The Americas Regional Headquarters Zebra Technologies International, LLC 333 Corporate Woods Parkway Vernon Hills, IL 60061-3109 U.S.A. T: +1 847 793 2600 Toll-free +1 800 423 0422 F: +1 847 913 8766
Asia Pacific Zebra Technologies Asia Pacific Pte. Ltd. 120 Robinson Road #06-01 Parakou Building Singapore 068913 T: + 65 6858 0722 F: +65 6885 0838
This material is subject to change without prior notice. This material is provided by Zebra Technologies for informational purposes only, without representation or warranty of any kind, and Zebra shall not be liable for errors or omissions with respect to the materials. UNIX is a registered trademark of The Open Group. Electronic Product Code, EPCglobal Network, EPCglobal Inc, and EPCglobal US are trademarks of EPCglobal Inc. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Red Hat is a registered trademark of Red Hat, Inc. CUPS, the Common UNIX Printing System, and the CUPS logo are trademarks of Apple, Inc. Microsoft, Windows, Windows Server, and Windows NT are registered trademarks of Microsoft Corporation. Windows Server and Windows Mobile are trademarks of Microsoft Corporation. Linux is the registered trademark of Linus Torvalds in the U.S. and other countries. HP-UX is a trademark of Hewlett-Packard Corp. in the United States and other countries. Zebra, ZebraLink, ZebraDesigner, ZebraDesigner for XML, and ZebraNet Bridge Enterprise are trademarks or registered trademarks of Zebra Technologies Corporation in the U.S.A. and other countries. Zebra is a registered trademark of Zebra Technologies. Various product and service names referenced herein may be trademarks of Zebra Technologies. All other product and service names mentioned may be trademarks of their respective owners.
Contents
1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
ZEC and Oracle BI Publisher . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 How ZEC Works . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
11/04/2008
P1006951-001 A
Contents
P1006951-001 A
11/04/2008
Contents
Search Group Window and Printer Discovery . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Default View . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Before You Begin . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Create a Local Broadcast Search Group . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Create a Subnet Search Group . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Create a Directed Broadcast Search Group . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Create a Multicast Search Group . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Create an IP Address Search Group . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Group Management Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Create a Group . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Copy Search Groups . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Copy Individual Printers to a Group . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Add Printers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Sort Printers and Groups . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Printer Preferences . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Delete Printers/Groups . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Task List Dialog Box . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Printer and Print Server Alerts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Configuring Printer Alerts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . View Printer and Print Server Alerts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Clear Alerts Log . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Status Icons . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Status Tab . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Summary Tab . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Visual Alerts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Default View . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Before You Begin . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Configure Visual Alerts Tab. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Monitor Alerts with the Visual Alerts Tab . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Maintenance Tab. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
68 68 68 69 70 71 72 73 74 74 75 75 76 80 81 84 85 86 86 87 88 89 89 92 93 93 93 93 95 99
11/04/2008
P1006951-001 A
Contents
P1006951-001 A
11/04/2008
1
Introduction
The ZebraLink Enterprise Connector (ZEC) has the ability to efficiently interpret and convert XML into printable content, which translates into time and cost savings for bar code label printing and RFID encoding. ZEC offers the following benefits: Preloaded label formats, which provide the fastest way to start printing bar codes and labels without having to know the Zebra Programming Language II (ZPL II). The preloaded label formats support Oracle WMS, Oracle Depot Repair, and Oracle BI Publisher, facilitating XML printing from these Oracle applications. Label printing from Oracle BI Publisher to Zebra ZPL II printers. A simple, convenient interface for printing labels with text, graphics, or bar codes or for encoding RFID tags. Efficient use of resources by building a single labeling solution that can be used to print multiple languages thanks to Unicode support in Zebra printers. ZEC is supported on the following operating systems: Red Hat Enterprise Linux ES release 4 HP-UX 11iV1 (B.11.11)
11/04/2008
P1006951-001 A
The ZebraLink Enterprise Connector printing solution includes the following components: ZebraLink Enterprise Connectorthe server-based solution that is run using the Java Runtime Environment (v1.4 or greater). ZEC uses XML-formatted data, which allows for easy implementation of custom designs and ZPL delivery to any Zebra ZPL II printer. ZebraNet Bridge Enterprisea printer management tool for setting alerts, audits and configurations. See ZebraNet Bridge Enterprise on page 49. ZebraDesigner for XML a software package that gives you the ability to create label formats in a GUI environment. See ZebraDesigner for XML on page 25. Zebra printersZEC can be used with a broad range of Zebra printers, including the following:
P1006951-001 A
105SL G-Series (GX, GK) P4T and RP4T QL Plus series (QL 220 Plus, QL 320 Plus, QL 420 Plus) PAX4 series (110PAX4, 170PAX4) R110PAX4
ZebraLink Enterprise Connector User Guide 11/04/2008
RXi series (R110Xi, R170Xi) RW series (RW420, RW220) RZ series (RZ400, RZ600) S4M Xi series (110XiIIIPlus, 140XiIIIPlus, 170XiIIIPlus, 220XiIIIPlus) Z Series (ZM400, ZM600, Z4Mplus, Z6Mplus)
ZPL Template (using template file AddressLabel.zpl) ^XA ^FO050,050^A0N,30,30^FN1^FD$$FROM_NAME$$^FS ^FO050,080^A0N,30,30^FN2^FD$$FROM_STREET$$^FS ^FO050,110^A0N,30,30^FN3^FD$$FROM_CITYSTATEZIP$$^FS ^FO150,250^A0N,50,50^FN4^FD$$TO_NAME$$^FS ^FO150,300^A0N,50,50^FN5^FD$$TO_STREET$$^FS ^FO150,350^A0N,50,50^FN6^FD$$TO_CITYSTATEZIP$$^FS ^FO150,450^BCN,100,N^FN7^FD$$TO_NAME$$^FS ^XZ
11/04/2008
P1006951-001 A
10
Resulting ZPL Sent to Printer ^XA ^FO050,050^A0N,30,30^FN1^FDZebra Technologies^FS ^FO050,080^A0N,30,30^FN2^FD333 Corporate Woods Pkwy^FS ^FO050,110^A0N,30,30^FN3^FDVernon Hills, IL 60061^FS ^FO150,250^A0N,50,50^FN4^FDAcme Processing^FS ^FO150,300^A0N,50,50^FN5^FD1280 Industrial Ave^FS ^FO150,350^A0N,50,50^FN6^FDPlanesville, IL 60046^FS ^FO150,450^BCN,100,N^FN7^FDAcme Processing^FS ^XZ ^XA^IDR:*.GRF^FS ^XZ ^XA ^FO050,050^A0N,30,30^FN1^FDZebra Technologies^FS ^FO050,080^A0N,30,30^FN2^FD333 Corporate Woods Pkwy^FS ^FO050,110^A0N,30,30^FN3^FDVernon Hills, IL 60061^FS ^FO150,250^A0N,50,50^FN4^FDOmni Corporate Packaging^FS ^FO150,300^A0N,50,50^FN5^FD46 Delta Street^FS ^FO150,350^A0N,50,50^FN6^FDDetroit, MI 48226^FS ^FO150,450^BCN,100,N^FN7^FDOmni Corporate Packaging^FS ^XZ ^XA^IDR:*.GRF^FS ^XZ
Resulting Labels
P1006951-001 A
11/04/2008
2
ZEC Installation and Operation
The ZebraLink Enterprise Connector installs in the unlicensed Demo mode. To operate in the full, licensed mode, you must obtain a license file from your Authorized Zebra Reseller.
Important The server on which ZebraLink Enterprise Connector is to be licensed must have a static IP address. To minimize the information that you need to provide during licensing, perform the licensing procedure from the server where the program will be run.
11/04/2008
P1006951-001 A
12
Installing ZEC
The ZebraLink Enterprise Connector is a Java application that runs within the Java Runtime Environment (v1.4 or greater). You can run the installation file (zecinstall.bin) from any location on the Oracle application server.
%> ./zecinstall.bin
2. Press Enter.
P1006951-001 A
11/04/2008
13
At the end of the license agreement, you are prompted to accept the terms.
The default installation path is /opt/zebra_ec. You can accept this path or you may specify your own absolute path.
11/04/2008
P1006951-001 A
14
7. Press Enter.
8. Press Enter.
During installation, the following directories are created in the <install_path> directory: Uninstall_Enterprise_Connector (files for uninstalling ZEC) bin (contains the ZEC program and configuration files) tmp (a temporary storage directory) documentation (contains the User Guide) Licenses (contains the end user license agreements for the product) installlog (contains the install record) logging (contains event logs) xmlreports (contains stored XML data streams) xsl (contains XSL transforms) zplrepository (contains stored label templates)
The Enterprise Connector installation process is completed after the Installation Complete confirmation message.
P1006951-001 A
11/04/2008
15
Important The installer creates the installation directory and corresponding files with the owner and group set to the user who is installing the product. ZebraLink Enterprise Connector is installed with the assumption that a specific group will be created for users or processes that only need to print. Most files are configured such that the permissions only allow the group or other users to read the file. The <install_path>/bin/zec and <install_path>/bin/zecPipe files and the <install_path>/tmp folder are configured to allow the group the proper permissions to print. To change the group of every file in the installation, type the following:
11/04/2008
P1006951-001 A
16
Licensing ZEC
ZEC is installed in Demo mode by default. The software stays in Demo mode until the administrator loads a valid license file (license.lic) in a specified directory (<install_path>/bin). To use ZEC for production purposes, you must purchase a valid software license from Zebra Technologies or from a certified Zebra Value Added Reseller. For additional information regarding ZEC licensing, send an e-mail to [email protected].
Important If a valid ZEC license file is modified in any way, ZEC will no longer recognize
Demo Mode
In Demo mode, the word DEMO is printed in the upper-left corner of the label, and the following characters are replaced in variable field data: E with a random letter e with a random letter I with a random letter i with a random letter 2 with a random number 7 with a random number
License Mode
To activate the ZEC for production purposes, you must obtain and install a license file. The ZEC licensing system uses data about the computer that it is being run on to validate its license. A token file that you generate contains the necessary data. To obtain a license file, you must create a token file and send it in with your order. When the order is validated, the license file is generated and sent to you via e-mail.
P1006951-001 A
11/04/2008
17
for the information in quotation marks. You do not need to specify the IP address and host name unless the server has multiple host names and/or network interfaces.
Using the information that you provide, this command generates a token file named:
CustomerName_ReceiptNumber.info
Examples The following commands result in files with the names shown. For
example:
Upon receipt of your order and the .info file, Zebra generates a license file named license.lic and e-mails it to you.
4. Place the file license.lic in the bin directory. Do not rename the file.
If the license file is valid for the server, the next print job runs in Licensed mode.
5. If desired, send the following command to verify that ZEC is running in Licensed mode:
./zec -l
Important The .info file must be created using the IP address and host name of the computer where ZEC will be used during production. If either the IP address or host name changes at any time, ZEC will no longer recognize that license as valid and will automatically revert to Demo mode. For help, send an e-mail to [email protected].
11/04/2008
P1006951-001 A
18
Running ZEC
This section shows the ZEC options that you may run from the command line. Arguments in brackets are optional.
Note The ZebraLink Enterprise Connector installation process will not modify your system configuration to start the Enterprise Connector service automatically on startup. You need to start ZEC manually by sending ./zec -s each time the server is restarted. If you would like to have the Enterprise Connector service start automatically, you must manually modify your System V startup script to provide this functionality.
-i or --daemon-status
-l or --license
P1006951-001 A
11/04/2008
19
-p or --print
Sends the specified XML document to the ZEC to be printed to a specific printer. Format ./zec -p "FileName" "PrinterName"
If ZEC is not running when users submit print requests, the print requests are cached in a file called <install_path>/tmp/zecNoServiceAvail. You can restore the print requests after verifying that the ZebraLink Enterprise Connector is running. Important Do not attempt to restore the print requests if ZEC is not running. To check the ZEC status, run the following:
%> <install_path>/bin/zec -i
If necessary, start ZEC by running:
%> ./zec -s
To restore the cached print jobs, run the following:
%> cat <install_path>/tmp/zecNoServiceAvail > <install_path>/bin/zecPipe
-r or
--refresh-daemon-settings
Forces the running daemon to reread the application settings. Format ./zec -r
-s or --start-daemon
11/04/2008
P1006951-001 A
20
-t or --token
Generates a token file to be used for product licensing For more information about this option, see Licensing ZEC on page 16. Format
./zec -t "customerName" "receiptNumber" ["ipAddress" "hostName"]
-v or --version
-x or --stop-daemon
P1006951-001 A
11/04/2008
21
%> ./zec -s
4. Enter the following command to print the Shipping.xml sample data. Substitute the name
If
Then
Yes No
ribbon. b. Confirm that the data light on the printer flashes when you send the print job. If the data light does not flash, the printer is not receiving data. Check the data connections. c. Check that the CUPS driver is configured correctly. See Configure the CUPS Driver on page 101. d. If the printers is connected to your network using a ZebraNet print server, confirm that the printer is online. There are two ways to do this: Using a web browser, go to the printers IP address to view the printers web page. The printers status is displayed there. Using a terminal emulation program or the command line, connect to the printer via telnet, and send the ZPL command ~WC. A printer configuration label should print. The following is an example of a command to create a raw telnet connection to a printer at IP address 10.3.5.66: telnet 10.3.5.66 9100 After you are connected to the printer, send the ~WC command.
11/04/2008
P1006951-001 A
22
Configuring ZEC
To configure ZEC for use, you must modify the settings.ini file and the ReportInfo.ini file in the <install_path>/bin directory to match your requirements.
settings.ini
ZEC installs a default version of the settings.ini file that you may need to edit to match your application. If an entry in the file is not present, ZEC uses the default value. If you delete the settings.ini file, ZEC regenerates the file with default settings.
Important After you edit the settings.ini file, you must issue the refresh command
(./zec -r) for ZEC to reload the file. Table 2 Settings to Configure in the settings.ini File
Setting Default Value Description
zplrepository on off
The directory where ZEC looks for ZPL template files. Turns error logging on and off. The sysLog.txt file is saved to the ./logging directory. Turns on and off the option of saving ZPL created by ZEC. Note Using this feature causes the zplLog directory to retain every label sent to the print queue, which could potentially consume a large amount of disk space. The directory where ZPL files are logged. The directory where ZEC looks for XSL transform files.
zpllogdir xsl
logging/zplLog xsl
P1006951-001 A
11/04/2008
23
ReportInfo.ini
ZEC uses the ReportInfo.ini file to map incoming XML data to specific ZPL templates and optional XSL processing files. You must make an entry in the ReportInfo.ini file for each root node that will be used in the incoming XML data stream. This configuration step is critical to ensure proper operation. Without appropriate entries in the ReportInfo.ini file, ZEC will not perform the desired data transformations on incoming XML data.
<?xml version="1.0" encoding="UTF-8" ?> <SHIP_TO_RECORD_SET> <FROM_NAME>Zebra Technologies</FROM_NAME> <FROM_STREET>333 Corporate Woods Pkwy</FROM_STREET> <FROM_CITYSTATEZIP>Vernon Hills, IL 60061 </FROM_CITYSTATEZIP> <RECORD> <TO_NAME>Acme Processing</TO_NAME> <TO_STREET>1280 Industrial Ave</TO_STREET> <TO_CITYSTATEZIP>Planesville, IL 60046 </TO_CITYSTATEZIP> </RECORD> <RECORD> <TO_NAME>Omni Corporate Packaging</TO_NAME> <TO_STREET>46 Delta Street</TO_STREET> <TO_CITYSTATEZIP>Detroit, MI 48226 </TO_CITYSTATEZIP> </RECORD> </SHIP_TO_RECORD_SET>
11/04/2008
P1006951-001 A
24
Notes ___________________________________________________________________
P1006951-001 A
11/04/2008
3
ZebraDesigner for XML
The ZebraDesigner for XML software is a labeling software product that brings a complete bar code printing solution to desktop users. ZebraDesigner for XML offers an easy-to-use interface and meets any label design and printing requirement for efficient label printing solutions to users in retail, logistics, health care, chemical, automotive, and other industries. ZebraDesigner for XML can be used with the following 32-bit Microsoft Windows operating systems: Windows 2000, Windows XP, and Windows Server 2003. ZebraDesigner for XML is used to design ZPL template files. Exported templates are uploaded to the ZebraLink Enterprise Connectors ZPL Repository for processing during printing.
11/04/2008
P1006951-001 A
26
The simple label that you will design will look similar to this:
P1006951-001 A
11/04/2008
27
2. Click Next.
11/04/2008
P1006951-001 A
28
4. Click Next.
5. If the printer is connected to your computer, select the port to which the printer is
connected.
6. Click Finish.
P1006951-001 A
11/04/2008
29
In this section, you will: Place objects on a label. Link objects to variables. Preview the label on the screen.
11/04/2008
P1006951-001 A
30
1. Select Start > Programs > ZebraDesigner for XML > Label Design.
The Label Setup Wizard prompts for the printer to use to create the label.
4. From the drop-down list, select the printer that you just installed.
P1006951-001 A
11/04/2008
31
5. Click Next.
This page provides two ways to enter the page size for your labels: Automatically set from label dimensions: ZebraDesigner for XML and ZebraDesigner printer drivers automatically size the label dimensions. Select a page size: Allows you to manually define the page size.
11/04/2008
P1006951-001 A
32
ZebraDesigner prompts for the page size (not necessarily the same as the label size).
8. Click Next.
This page provides two ways to change the orientation of the label. Look at the screen and printer layouts to see how the label will be printed from the printer relative to how it looks on the screen. Orientation: Changes the label orientation from portrait (vertical) to landscape (horizontal) if necessary. Print direction: The Rotated option rotates the label 180 degrees during printing.
P1006951-001 A
11/04/2008
33
9. Click Next.
ZebraDesigner prompts for the label dimensions (not necessarily the same as page size).
This page provides ways to specify assorted label dimensions: Width, height: Defines the label dimensions. This example uses a 3x2-inch format. Margins: Defines the label margins. Leave these values at 0.0. Rows, columns: Defines the number of labels in horizontal and vertical directions. ZEC supports the use of one row and column. Gaps: Defines the gap between the labels. Leave this value at 0.0.
Note Define gaps only if you change the rows and columns options. If you have
rolls of labels, the gaps between the labels are auto-identified by the gap sensor in the printer. Unit of measure: If necessary, change the unit of measure.
10. Set the label width to 3.0 and the label height to 2.0.
11/04/2008
P1006951-001 A
34
ZebraDesigner for XML prompts for scripts to add additional ZPL code to the label template that it will create.
When necessary, use this dialog box to define custom printer commands and include them in the printer stream data. Normally, ZebraDesigner for XML processes your label file and exports the appropriate printer commands to the printer. Use Header Script: This option sends custom scripts to the printer ahead of the label data. Use Footer Script: This option sends the custom script to the printer after the label data.
P1006951-001 A
11/04/2008
35
different variable than $$part_number$$. Additionally, the XML tags sent from Oracle BI Publisher must match the variables used in the label template. The following is a sample XML report. Note the XML tag <PART_NUMBER>.
In a label in ZebraDesigner for XML, the corresponding variable PART_NUMBER is enclosed by $$ so that ZEC can recognize that this is variable data.
11/04/2008
P1006951-001 A
36
P1006951-001 A
11/04/2008
37
3. Enter the name of the variable. Use the variable descriptive name from Oracle BI
match.
4. Click Next.
of the actual data to be used at print time. When you link your variable to the label object, the sample data will be used for the contents of the object. The sample data is shown during label design only. In this example, a sample part number was substituted for the default word Sample.
11/04/2008
P1006951-001 A
38
6. If desired, enter additional ZPL to be added to the label format. This step is optional and
7. Click Finish.
8. Click in the upper-left corner of the label in the ZebraDesigner for XML window.
P1006951-001 A
11/04/2008
39
ZebraDesigner for XML places the single-line variable at the location where you clicked.
11/04/2008
P1006951-001 A
40
4. Click Next.
5. Click Next.
P1006951-001 A
11/04/2008
41
6. Select the variable that you created in the previous exercise. 7. Click Finish.
ZebraDesigner for XML places the bar code at the location where you clicked.
Note The bar code appears in red if it does not fit on the label at the location where you
clicked. If this happens, click on the bar code and drag it fully onto the label, resizing it if necessary.
8. Click on the bar code to select it. Then right-click on the bar code, and select Bar Code Properties.
11/04/2008
P1006951-001 A
42
P1006951-001 A
11/04/2008
43
11/04/2008
P1006951-001 A
44
2. Select the desired location to save the label format. 3. Give the label format the name IDTAGCARD. 4. Click Save. 5. Select File > Export to Printer.
A warning message appears because ZebraDesigner for XML only allows the file name to be eight characters long.
6. Click OK.
The file name is truncated to eight characters: IDTAGCAR. The XML Format Generation Wizard prompts for a template file name.
P1006951-001 A
11/04/2008
45
7. Click Next.
The XML Format Generation Wizard prompts for test XML file settings.
11/04/2008
P1006951-001 A
46
12. Select a location on your computer to save the template file. 13. Click Next.
The XML Format Generation Wizard saves the label format to template file.
14. Click OK. 15. Use Windows Explorer to rename the template file to IDTAGCARD.zpl. 16. Load the IDTAGCARD.zpl file into the ZEC environment.
P1006951-001 A
11/04/2008
47
VariableLeftTagCharacter= VariableRightTagCharacter=
Change these to read:
VariableLeftTagCharacter=$$ VariableRightTagCharacter=$$
and save the file. Do not change any other entries.
11/04/2008
P1006951-001 A
48
Notes ___________________________________________________________________
P1006951-001 A
11/04/2008
4
ZebraNet Bridge Enterprise
ZebraNet Bridge Enterprise is a centralized printer management application for Zebra printers. ZebraNet Bridge Enterprise provides real-time monitoring and configuration of your ZebraLink-enabled printers and ZebraNet print servers in a single, easy-to- use application. With ZebraNet Bridge Enterprise, you can configure Zebra printers; deploy fonts, printer firmware, and graphics to individual printers; and manage from a central repository.
11/04/2008
P1006951-001 A
50
Components
This section provides information about ZebraNet Bridge Enterprise. For a graphical representations of ZebraNet Bridge Enterprise, see the next few graphics. A table follows the figures and provides a detailed description of each component.
1 2 3 4 5 6
7 9 8
P1006951-001 A
11/04/2008
51
10
Keys 1
Graphic Element
Purpose
Allows network searches for Zebra printers with ZebraNet print servers. You can conduct searches using: local broadcast subnet directed broadcast multicast IP Address and range Content window contains the following: Events tab
Status tab Allows you to manage your Zebra printers and print servers. Content window contains the following: Contents tab Events tab Status tab Summary tab Maintenance tab Visually alert you of potential problems with your printer or print server. The application heartbeat updates the status icon. The default interval is every 5 minutes.
11/04/2008
P1006951-001 A
52
Keys 4
Graphic Element
Purpose
Allows you to copy: objects firmware fonts graphics files to printers in the Group Management window. Important Ensure that files in the Resource Management window are in the printers native format. Content window contains the following:
5 6
Contents tab Allows you to store printer configurations offline. This capability speeds recovery from printer failure. Acts as a golden printer to broadcast configurations (settings and files) to printers across your network. Allows you to access these tabs: Contents tab use to view and change settings. Events tab use to monitor current alerts. Status tab Quick Status Panel provides a high-level status of a given print server. Detailed Status Panel when you select Refresh, provides you with a detailed status of a given printer.
System Bar
Port Status Panel when you select Refresh, provides current status of network ports on the print server. Summary tab use to simultaneously view the status of all printers in the Group Management window. Visual Alerts tab use to view a graphical representation of your printer network. Maintenance tab use to view the current counter values. Allows you to check the system status. The system bar consists of: Alert bar
8 9 10
Progress bar Displays the latest alert messages that you have not viewed. Displays when the Task List dialog box is running in the background. Displays the tasks performed on Zebra printers via your network. (For example, refresh a printer, download a file, search.)
P1006951-001 A
11/04/2008
53
Supported Languages
ZebraNet Bridge Enterprise application and help system language preferences default to the local system language. These are the languages supported in ZebraNet Bridge Enterprise: English German Italian French Spanish Japanese Korean Portuguese (Brazil) Chinese (China) Chinese (Taiwan)
11/04/2008
P1006951-001 A
54
P1006951-001 A
11/04/2008
55
ZebraNet Bridge Enterprise supports multiple user interface configurations. This is useful for managing large groups of printers in various configurations. For instance, you may want a different application configuration for each department or location.
Search Window
Zebras mobile printers do not respond to discovery requests. Mobile printers will not be included in the results of search groups in the Search window.
Status Icons
Because mobile printers do not respond to discovery requests, status icons for mobile printers will always have a white background.
Events Tab
Because mobile printers do not have alerts, the Events tab will not display messages when you select a mobile printer.
11/04/2008
P1006951-001 A
56
Status Tab
Mobile printers do not have an internal print server. The Status tab of a mobile printer does not display Quick Status. Request Detailed Status or Port Status by clicking Refresh.
Summary Tab
Because mobile printers do not respond to discovery requests, status icons for mobile printers in the Summary tab will always have a white background.
Visual Alerts
Because mobile printers do not have alerts, the Visual Alerts tab will not display alerts.
Maintenance Tab
The Maintenance tab is for use with printers that offer ZPL-based odometers.
Profile Management
Profiles may be created for Zebra card printers, however, only the print server settings will be included in the printers profile.
Events Tab
Print server alerts may be received and displayed in the events tab. Card printers do not support printer alerts.
Status Tab
Quick status and Port status panes will display status similar to stationary printers. The Detailed Status pane, upon refresh will display limited card printer status information.
P1006951-001 A
11/04/2008
57
Visual Alerts
Zebra card printers may be included in visual alerts, however, only print server alerts are available and displayed.
Maintenance Tab
The Maintenance tab is for use with printers that offer ZPL-based odometers.
11/04/2008
P1006951-001 A
58
Event Notification
If the application is running minimized and captures alerts, ZebraNet Bridge visually notifies you. Event notification allows you to monitor printers that have a specific event type, such as Urgent.
P1006951-001 A
11/04/2008
59
2. From the When an event arrives area, click the Force application to be active when the event severity is at least list and select the event severity that you need.
Note You can set alert event severity levels in the View Filter - Events tab of the System
11/04/2008
P1006951-001 A
60
Program Startup
This feature is available only in the ZebraNet Bridge Enterprise licensed version.
If you have saved multiple user interface configurations you can specify how you want the application to act at startup. For more details, see Multiple User Interface Configurations on page 55.
1. From the menu bar, select Preferences >System Settings.
If
Then
you want to use the last used configuration you want to select the configuration at startup
At the program startup area, enable Load last used configuration check box. At the program startup area, uncheck the Load last used configuration check box.
System Heartbeat
The System Heartbeat controls how often the printers status icon and quick status update. The default interval is five minutes.
To assign a system heartbeat interval:
1. From the menu bar, select Preferences > System Settings.
The system heartbeat Automatic update of status icons Quick status functions
3. When you are finished, click OK.
P1006951-001 A
11/04/2008
61
11/04/2008
P1006951-001 A
62
Printer Resolving
ZebraNet Bridge can resolve printers by IP Address or by Host Name. The default setting resolves printers by IP address.
Note The recommended method is Resolve by IP Address unless it is not supported by your
network.
To change printer resolving:
1. From the menu bar, select Preferences > System Settings. 2. Select the Printer Options tab.
P1006951-001 A
11/04/2008
63
Timeout Interval in mSec: The time that the application waits for response from a printer on your network. The default is 1000 mSec. Discovery Retries: The number of requests for response from your network printers. The default is 3. Discovery Port: The network port that the application uses for discovery requests. Your network might use this port for another application. If so, you can change this port on your Zebra printers. Then direct the application to the new port. The default is 4201. Heartbeat Retries: The number of retries during a heartbeat request. If your network is slow, change the application to retry a number of times. This change ensures accurate printer status reports. The default is 0.
11/04/2008
P1006951-001 A
64
Drop-down options Selects all alerts Selects all Urgent alerts Selects all Warning alerts Selects all Informational alerts Deselects all alerts
P1006951-001 A
11/04/2008
65
2. In Alerts Listening Ports, change the TCP Alert Listing Port value.
4. To close the Notice dialog box, click OK. 5. To save your system settings changes, click OK.
11/04/2008
P1006951-001 A
66
Maintenance Tab
ZebraNet Bridge allows you to set and track various odometers.
To change threshold options:
1. From the menu bar, select Preferences >System Settings. 2. Select the Maintenance tab.
3. From the Threshold Unit drop-down, select the desired unit of measure. 4. In the Caution Threshold text box and the Warning Threshold text box, enter a value, and then click OK.
P1006951-001 A
11/04/2008
67
Example This example provides a scenario of how you would determine the values for
Maintenance tab: You are about to load a new roll of media into a printer and you need to identify how many labels come are on the roll. For example, a new roll of 4 in. x 6 in. Z-Select 4000D media contains 950 labels. 1. Multiply the total number of labels by 12 to obtain the total inches (950 x 12 = 5700). 2. With the total number of labels (in inches) for this roll of media, open ZebraNet Bridge and select the Maintenance tab. 3. Right-click on the printer, select Reset Odometer. The Centimeters and Inches columns will reset to 0. 4. Go to the menu bar in ZebraNet Bridge and select Preferences > System Settings, and then select the Maintenance tab. 5. In the Maintenance tab, confirm that the Threshold unit is set to inches. 6. In the Caution Threshold text box, type 5000. 7. In the Warning Threshold text box, type 5500. 8. After the above settings are made, select Refresh Counters. After the printers odometer reaches 5000, the Caution icon will appear to the left of the printer. Once the printers odometer reaches 5500, the Warning icon will appear.
Warning icon
Caution icon
11/04/2008
P1006951-001 A
68
Default View
The Search Group window includes a default local search. The local search group is populated with printers found in a local subnet broadcast when the application is opened.
Important Search group names should not include these characters: <, >, /.
Go to Create a Local Broadcast Search Group on page 69. Go to Create a Subnet Search Group on page 70. Go to Create a Directed Broadcast Search Group on page 71. Go to Create a Multicast Search Group on page 72. Go to Create an IP Address Search Group on page 73
Note You can enter more than one search or search-type within a search group.
P1006951-001 A
11/04/2008
69
3. In the Search Group Name text box, type in the search name. 4. Enable the Local Broadcast option button. 5. The Value field is automatically populated. Click Add.
11/04/2008
P1006951-001 A
70
3. In the Search Group Name text box, type the search name. 4. Enable the Subnet option button. 5. In the Value field, type the first three subnet octets followed by an *. 6. Click Add. 7. Click OK.
P1006951-001 A
11/04/2008
71
3. In the Search Group Name text box, type in the search name. 4. Enable the Directed Broadcast option button. 5. In the Value field, type in the first three subnet octets and then 255. 6. Click Add. 7. Click OK.
11/04/2008
P1006951-001 A
72
The Multicast search requires you to type in the number of routers to hop.
To perform a Multicast search group:
1. In the Search Group window, right-click Searches. 2. Select New Search.
3. In the Search Group Name text box, type in the search name. 4. Enable the Multicast (Hops) option button. 5. Within the parentheses, in the Value field, type in the number of routers to hop. 6. Click Add. 7. Click OK.
P1006951-001 A
11/04/2008
73
10.3.5.20
Example 2 To send a discovery request to printers in the address range of 10.3.5.20
through 10.3.5.47, enter: 10.3.5.20-47 The IP address search avoids sending unnecessary traffic to non-printing devices.
To perform an IP address search group:
1. In the Search Group window, right-click Searches. 2. Select New Search.
3. In the Search Group Name text box, type in the search name. 4. Enable the IP Address option button. 5. In the Value field, type in the IP address, or partial address using *. 6. Click Add. 7. Click OK.
11/04/2008
P1006951-001 A
74
rename the new group folder to Manufacturing. Naming printers by location or department helps you to monitor the designated groups of printers.
Create a Group
Creating a group allows you to manage groups of printers in one location or folder.
To create a new group:
1. In the Group Management window, right-click on Groups. 2. Select New > Group.
on page 75.
P1006951-001 A
11/04/2008
75
copy.
2. Right-click on the source printer. 3. Select Copy. 4. In the Group Management window, find the target group that you want the printer copied
into.
5. Right-click on the group. 6. Select Paste > Copy printer to group. 7. Repeat step 1 through step 5 until the target group contains all of the printers you want to
manage.
11/04/2008
P1006951-001 A
76
Add Printers
You can add networked or locally connected printers from the Group Management window. You can add a printer to the group folder or to a group subfolder.
Note For local printers, the heartbeat interval does not update the printer status icon. To add a networked printer:
1. In the Group Management window, right-click on a group. 2. Select New > Printer.
P1006951-001 A
11/04/2008
77
4. Click Next.
If
Then
1. Enter the IP address of the printer that you wish to add. 2. From Select PrintServer Type, select the ZebraNet Wired and Wireless option box. 3. Enter the port number for the printer. Note The default port for Zebra tabletop and desktop printers is port 9100. 1. Enter the IP address of the printer that you wish to add. 2. From Select PrintServer Type, select the Mobile-802.11b option box. 3. Enter the port number for the printer. Note The default port for Zebra mobile printers is port 6101.
6. Click Finish.
The printer is automatically added to the selected group in the Group Management window. The next heartbeat interval updates the printer status icon. You may expand the printer using the + icon beside the printer IP Address.
Note For local printers, the heartbeat interval does not update the printer status icon.
11/04/2008
P1006951-001 A
78
Note If you have a driver installed on a local port, that port will not be available in the
list. A message to notify you of unavailable ports displays in the dialog box.
P1006951-001 A
11/04/2008
79
If you select
Then
6. Adjust COM port settings to match those in use by your PC and printer.
7. Click Finish.
In the Group Management window, the selected group contains the new printer.
11/04/2008
P1006951-001 A
80
Sort button
P1006951-001 A
11/04/2008
81
Printer Preferences
You can set up communications preferences for individual printers separately from the application preferences using the Printer Preferences function in ZebraNet Bridge Enterprise. You can also add individual notes to each printer, such as a firmware upgrade date or other printer information.
To set individual printer communication preferences:
1. In the Group Management window, right-click on a printer. 2. Select Preferences. 3. Click the Advanced tab. 4. Select Communications Settings.
11/04/2008
P1006951-001 A
82
6. Click Next.
P1006951-001 A
11/04/2008
83
4. Type notes in the text area. 5. When you are finished, click OK.
Note The text in the Notes section saves with the application. The application does not
11/04/2008
P1006951-001 A
84
Delete Printers/Groups
From the Group Management window, you can delete printers or groups of printers.
Important Use this feature carefully. You immediately delete printers and groups from the Group Management window. To delete a printer:
1. From the Group Management window, right-click on a printer. 2. Select Delete.
P1006951-001 A
11/04/2008
85
In the Task List dialog box, select Auto open when a task is added.
To manually launch the Task List window:
In ZebraNet Bridge Enterprise window toolbar, click the Task Manager icon.
11/04/2008
P1006951-001 A
86
Important ZebraNet Bridge only logs alerts that occur while the application is running.
Note ZebraNet Bridge Enterprise only monitors and logs printer and print server alerts
using SNMP on port 162 and TCP. The application allows you to set up other printer and print server alerts.
P1006951-001 A
11/04/2008
87
Some settings have a list to choose from. Other settings have a value to change.
7. To save the settings, right-click on the printer. 8. Select Save.
If
Then
No Yes
For more details on setting alerts, see the ZPL II Programming Guide.
view.
2. In the Contents window, select the Events tab.
3. To sort events by printer name, IP address, date/time received, severity, or trigger, double-
11/04/2008
P1006951-001 A
88
If
Then
No Yes
Click OK. Enable the Save Alert Log To File check box and save the file.
The active alert log and the Event tab of the Content window clears.
P1006951-001 A
11/04/2008
89
Status Icons
Status icons in the Group Management Window provide at-a-glance status information about your printers and print servers. Status icons are updated by the application heartbeat. The application heartbeat can be set from 1 to 120 minutes, or set to off. The default setting is 5 minutes. Turning the application heartbeat off will result in the printer icons being white. You can set the application heartbeat from the System Settings dialog box in the Preference menu. Status icons use these color codes: Green indicates no errors detected. Yellow indicates warning conditions detected. Red indicates urgent errors detected. White indicates that the printer is not detected by the application.
Status Tab
The Status tab provides status of your Zebra printers. The status types are: Quick Status appears as soon as you select the status tab. It provides a high-level view of the print server status and is updated by the application heartbeat. Detailed Status is empty when you select the Status tab. When you click Refresh, this panel reports printer status. Printer error conditions are displayed with a red background. Port Status updates when you click Refresh. This panel includes information on the print server ports.
11/04/2008
P1006951-001 A
90
Refresh button
Important To minimize network traffic, the Detailed Status panel does not update automatically.
When printer port 9100 has an active connection, you cannot update Detailed Status.
P1006951-001 A
11/04/2008
91
Then
In the Quick Status panel, click Refresh. The Quick Status updates with the heartbeat of the application. In the Detailed Status panel, click Refresh. The Detailed Status panel is updated with selected status details from the printer.
Printer Status
Port Status
11/04/2008
P1006951-001 A
92
Summary Tab
The Summary tab provides a print server status summary of all printers in the Group Management Window similar to ZebraNet Utilities. Printer and print server settings may not be changed in the Summary tab.
To view a group, in the Group Management window select the group you to view and click on the Summary tab.
P1006951-001 A
11/04/2008
93
Visual Alerts
This feature is available only in the ZebraNet Bridge Enterprise licensed version.
Visual Alerts allow you to view and centrally manage your printers in a graphical representation of your network, whether on the manufacturing floor, in a distribution center, cross-docking facility, or scattered around the globe in multiple facilities. With the ability to drill down through locations to identify trouble printers, you can monitor your top level groups and receive visual notification of issues, before they become problems. Visual Alerts work in concert with Printer Alerts. You can customize the application to your companys needs.
Example If you want to monitor paper out conditions for manufacturing floor printers, you
could set up the printer alerts for Paper Out using SNMP. The application monitors SNMP traps for printer alerts. If the Visual Alerts tab is configured, you are graphically alerted to a Paper Out condition for all your manufacturing floor printers.
Default View
Selecting printers and groups in the Group Management window with the Visual Alerts tab selected displays the printers, by default. This is considered the starting point for Visual Alerts configuration.
the Group Management window, and then move down through the appropriate management groups.
Important It is recommended that you save the graphic files that you intend to use in the applications Resource Management window.
11/04/2008
P1006951-001 A
94
The content of the selected group appears in the upper left-hand corner of the Visual Alerts tab in the form of folders for groups and printer icons for printers.
Note The title bar of the Visual Alerts tab contains the name of the selected group in the
The graphic is displayed in the group map area of the Visual Alerts tab.
8. Drag and drop the sub-groups (or printers) to the appropriate place in your graphic. 9. In the Group Management window, select a second-level group or double-click on the
groups folder in the Visual Alerts tab map area. The content of the second-level group appears in the upper left-hand corner of the Visual Alerts tab. It shows folders for groups and printer icons for printers.
10. Right-click in the group map area of the Visual Alerts tab. 11. Select Background Image.
The graphic is displayed in the group map area of the Visual Alerts tab.
15. Drag and drop the sub-groups (or printers) to the appropriate place in your graphic. 16. Repeat this process for each sub-group until finished.
Note Leaving the Visual Alerts tab or moving to another group in the Group Management
window automatically saves all changes to your Visual Alerts tab group map.
P1006951-001 A
11/04/2008
95
tab.
Note Selecting the top-level group organizes and presents information for all received
Visual Alerts, regardless of which management sub-group the printers reside in the Group Management Window. If you do not have the Visual Alerts tab open when an alert is received an icon appears next to the text on the Visual Alerts tab. When a printer or print server alert is received by the application, the appropriate management sub-group will begin to flash in the Visual Alerts group map area. This illustration shows a flashing sub-group.
1 1
Flashing Sub-Group
11/04/2008
P1006951-001 A
96
The sub-groups Visual Alerts group map opens. The printer that received the alert flashes. This illustration shows a flashing printer.
1 1
Flashing Printer
P1006951-001 A
11/04/2008
97
The Alert Notification dialog opens next to the printer. Information is displayed the dialog box for all received alert(s).
To clear the alert and stop the flashing printer and sub-group, click Clear Alert(s). To clear printer alerts for all printers, in the upper-right-hand corner of the Visual Alerts tab, click Clear All Alerts.
11/04/2008
P1006951-001 A
98
4. To troubleshoot printer issues further, look at the printer in the Status tab to determine the
issue before deploying resources to a remote location. The Status tab looks like this:
P1006951-001 A
11/04/2008
99
Maintenance Tab
This feature is available only in the ZebraNet Bridge Enterprise version.
The Maintenance tab provides these statuses: PrinterThe name of the individual printer CentimetersLength in centimeters of media printed since the odometer was last reset InchesLength in inches of media printed since the odometer was last reset Non-Resettable cmLength in centimeters of media printed for the whole life of the printer Non-Resettable in Length in inches of media printed for the while life of the printer Last RefreshedLast time the current odometer was refreshed
To view a group, in the Group Management window select the group you to view and click on the Maintenance tab.
11/04/2008
P1006951-001 A
100
Notes ___________________________________________________________________
P1006951-001 A
11/04/2008
A
Configure the CUPS Driver
The Common UNIX Printing System (CUPS) driver provides the printing layer for UNIXbased operating systems and is available in most Linux distributions. The ZebraLink Enterprise Connector uses CUPS in RAW pass-through mode as the basis for handling print jobs from Oracle BI Publisher. For additional information on CUPS, go to http://www.cups.org. This chapter details how to configure the CUPS driver for use with ZEC. The examples shown here were created using Red Hat. The interface may vary depending on the operating system used. If the CUPS driver is not available, Zebra recommends that you use a Raw or Generic (passthrough) printer driver. The purpose of using this type of driver is to ensure that the data coming from ZEC is not altered by the driver.
11/04/2008
P1006951-001 A
102
Configuration
Follow these steps to configure CUPS for the Enterprise Connector:
1. In Red Hat, select System > Administration > Printing.
3. Give the printer a name to display on the network. A description and location are optional. 4. Click Forward.
P1006951-001 A
11/04/2008
103
5. Select AppSocket/HP JetDirect, and enter the IP Address of the Zebra printer in the
Hostname field.
6. Click Forward.
8. Click Forward.
11/04/2008
P1006951-001 A
104
The system prompts you to confirm adding the new printer with the information shown.
P1006951-001 A
11/04/2008
105
12. If you are finished adding printers, exit the Printer configuration dialog. If you need to add
11/04/2008
P1006951-001 A
106
Notes ___________________________________________________________________
P1006951-001 A
11/04/2008
B
Configuring and Using Oracle BI Publisher
In order to print using ZEC from Oracle BI Publisher, you must install BI Publisher as recommended by Oracle. Refer to the Oracle BI Publisher user documentation for information on how to build reports, define data types, create report types, and register the reports to the Concurrent Program for printing. This section will detail how to configure the Concurrent Manager to output XML reports to ZEC. To use Zebra printers with Oracle BI Publisher and ZEC, the printers should be able to receive data via the CUPS driver. For more information on CUPS, see Configure the CUPS Driver on page 101. To use the ZebraLink Enterprise Connector solution, do the following: Design and export label templates to a file using the Microsoft Windows-based ZebraDesigner for XML label design environment (see ZebraDesigner for XML on page 25). Upload label templates to the server-based ZEC environment (see Upload ZPL Template Files on page 47). Configure Oracle to send XML print requests through ZEC. Oracle provides two solutions that can be used with ZEC: Concurrent Manager for Oracle eBusiness Suite Stand-alone Oracle BI Publisher
Configure the ZEC ReportInfo.ini file to link reports that will be generated from Oracle BI Publisher to the label design template files that are stored in the ZEC environment (see ReportInfo.ini on page 23).
11/04/2008
P1006951-001 A
108
Configuring and Using Oracle BI Publisher Using the Oracle Concurrent Manager
3. Login as SYSADMIN.
P1006951-001 A
11/04/2008
Configuring and Using Oracle BI Publisher Using the Oracle Concurrent Manager
109
11/04/2008
P1006951-001 A
110
Configuring and Using Oracle BI Publisher Using the Oracle Concurrent Manager
2. Configure the Printer Driver as shown. Note that the Argument path is the path where
ZEC is installed.
P1006951-001 A
11/04/2008
Configuring and Using Oracle BI Publisher Using the Oracle Concurrent Manager
111
11/04/2008
P1006951-001 A
112
Configuring and Using Oracle BI Publisher Using the Oracle Concurrent Manager
P1006951-001 A
11/04/2008
Configuring and Using Oracle BI Publisher Using the Oracle Concurrent Manager
113
Publisher.
11/04/2008
P1006951-001 A
114
Configuring and Using Oracle BI Publisher Using the Oracle Concurrent Manager
and Printer are populated automatically with the settings that were selected in Configuring the Printer Style on page 111.
115
11/04/2008
P1006951-001 A
116
Server Name: Enter the name of the printer. URI: Enter the name of the printer. Filter: Select Custom Filter from the drop-down box.
P1006951-001 A
11/04/2008
117
Filter Command:
11/04/2008
P1006951-001 A
118
EXAMPLE: To print an Oracle report named Price List, complete these steps:
1. Select the Price List report item.
3. Click Send.
P1006951-001 A
11/04/2008
119
4. Select Printer.
5. Select the desired printer from the Printer drop-down box. 6. Click Submit.
7. Click Close.
11/04/2008
P1006951-001 A
120
Notes ___________________________________________________________________
P1006951-001 A
11/04/2008
C
Using XSL for Custom Applications
Not all XML data streams will be in the appropriate format for use with ZEC. Using XSLT, incoming data can be transformed for use with ZEC.
Note To learn more about XSLT, see http://www.w3.org/Style/XSL/.
11/04/2008
P1006951-001 A
122
Data Transformation
See Table 3. The column on the left shows XML data that, although valid, cannot be converted into ZPL by ZEC. For this XML to be read, it must be transformed via XSLT. The column on the right shows the data after it has been transformed by XSLT. The transformed data can then be converted into ZPL by ZEC. Table 3 XML Transformed by XSLT
Data to be Transformed via XSLT (shippingRecordSet.xml)
<?xml version="1.0" encoding="UTF-8" ?> <!-- Generated by Oracle Reports version 6.0.8.27.0 --> <SHIP_TO_RECORD_SET> <RECORD> <variable name="FROM_NAME">Zebra</variable> <variable name="FROM_STREET">333 Corporate</variable> <variable name="FROM_CITYSTATEZIP">Vernon Hills, IL 60061</variable> <variable name="TO_NAME">Acme Processing</variable> <variable name="TO_STREET">1280 Industrial Ave</variable> <variable name="TO_CITYSTATEZIP">Planesville, IL 60046</variable> </RECORD> <RECORD> <variable name="FROM_NAME">Zebra </variable> <variable name="FROM_STREET">333 Corporate</variable> <variable name="FROM_CITYSTATEZIP">Vernon Hills, IL 60061</variable> <variable name="TO_NAME">Omni Corp Packaging</variable> <variable name="TO_STREET">46 Delta Street</variable> <variable name="TO_CITYSTATEZIP">Detroit, MI 48226</variable> </RECORD> </SHIP_TO_RECORD_SET>
Transformed Data
<?xml version="1.0" encoding="UTF-8" ?> <!-- Generated by Oracle Reports version 6.0.8.27.0 --> <SHIP_TO_RECORD_SET> <RECORD> <FROM_NAME>Zebra</FROM_NAME> <FROM_STREET>333 Corporate</FROM_STREET> <FROM_CITYSTATEZIP>Vernon Hills, IL 60061 </FROM_CITYSTATEZIP> <TO_NAME>Acme Processing</TO_NAME> <TO_STREET>1280 Industrial Ave</TO_STREET> <TO_CITYSTATEZIP>Planesville, IL 60046</TO_CITYSTATEZIP> </RECORD> <RECORD> <FROM_NAME>Zebra</FROM_NAME> <FROM_STREET>333 Corporate</FROM_STREET> <FROM_CITYSTATEZIP>Vernon Hills, IL 60061</FROM_CITYSTATEZIP> <TO_NAME>Omni Corp Packaging</TO_NAME> <TO_STREET>46 Delta Street</TO_STREET> <TO_CITYSTATEZIP>Detroit, MI 48226</TO_CITYSTATEZIP> </RECORD> </SHIP_TO_RECORD_SET>
P1006951-001 A
11/04/2008
123
XSL Structure
The transformation described in Table 3 can be achieved using the following XSL structure:
(SHIPTOREPORT.XSL)
<?xml version='1.0' encoding='utf-8'?> <xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform version="1.0"> <xsl:output method="xml"/> <xsl:template match="/"> <SHIP_TO_RECORD_SET> <xsl:for-each select="/SHIP_TO_RECORD_SET/RECORD"> <xsl:element name="{name()}"> <xsl:for-each select="*"> <xsl:element name="{@name}"> <xsl:value-of select="."/> </xsl:element> </xsl:for-each> </xsl:element> </xsl:for-each> </SHIP_TO_RECORD_SET> </xsl:template> </xsl:stylesheet>
SHIP_TO_RECORD_SET is the Root Node AddressLabel.zpl is the ZPL template file (stored in the zplrepository directory) RECORD is the Repeat Node SHIPTOREPORT.XSL is the XSL transform file (stored in the xsl directory)
11/04/2008
P1006951-001 A
124
Notes ___________________________________________________________________
P1006951-001 A
11/04/2008
Zebra Technologies International, LLC 333 Corporate Woods Parkway Vernon Hills, Illinois 60061.3109 U.S.A T: +1 847 793 2600 Toll-free +1 800 423 0422 F: +1 847 913 8766 Zebra Technologies Europe Limited Zebra Technologies Europe Limited Dukes Meadow Millboard Road, Bourne End Buckinghamshire, SL8 5XF United Kingdom T: +44 (0)1628 556000 F: +44 (0)1628 556001 Zebra Technologies Asia Pacific, LLC 120 Robinson Road #06-01 Parakou Building Singapore 068913 T: +65 6858 0722 F: +65 6885 0838 http://www.zebra.com