DMZTransfer User Guide: Upload and Download using an XML file

PrintUpload and Download using an XML file

Scripting up a batch of transfers can be done using operating system scripts containing multiple calls to startDMZ. This has the benefit of being very simple but has the drawback of requiring the startup of a JVM (Java Virtual Machine) and a new HTTPs connection for each call.

Starting a JVM is slow and the first HTTPs connection made within a JBM is slow, with subsequent ones running a lot faster. Since only one HTTPs connection is made when calling startDMZ, there are no subsequent connections to speedup.

To solve this, and provide a descriptive way of scripting DMZTransfer calls, uploading and downloading files can be done by specifying the necessary parameters in an XML file.

So instead of specifying the following commands to upload and download various files from various companies:

you can specify this: where the allTransfers.xml looks like:

xmlns:dmztransfer="https://dmztransfer.dmzglobal.com" xsi:schemaLocation="https://dmztransfer.dmzglobal.com c:/DMZTransferV2/conf/dmztransferSchedule.xsd"

Some of the advantages of this XML file are:

XML documentation

This document describes the process for specifying a transfer using XML, specifically XML schemas.
  1. For background information on XML schemas.

  2. Once you are familiar with XML Schemas, you may want to peruse the .XSD file that describes the format that the XML will take.
  3. This can be found in the application's conf directory.

  4. The easiest method to create a Transfer XML file is to copy an existing Transfer XML file. You will then not need to modify the header.

Overview of the elements in the XML file and what they mean.