Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The configuration of this example is described in detail in our JADE YADE - XML Configuration - Sample FilesXML Editor Usage for compatible .ini and .xml configuration files page.

On this page the more general aspects of the configuration procedure will be described.

Example Configuration File

  • On our JADE YADE - XML Configuration - Sample FilesXML Editor Usage for compatible .ini and .xml configuration files page there is complete configuration download file available to help users get the example up and running as quickly as possible. This configuration is a working example that will download files from the online SOS Demo server to a local file system.
  • The transfer configuration is described here uses the XML-based configuration introduced with Release 1.11 of JADE. A similar example using the Settings parameters configuration that was implemented for releases before 1.11 can be found our JADE Tutorials along with a configuration download file.

Configuration Tool

We recommend using the SOS XML Editor to generate the XML configuration file. This editor uses the JADE XSD schema as  as a guide through each stage of the process. The schema is used to control and then validate the elements that can be specified in the configuration.

Using the editor XML Editor will significantly reduce the possibility of configuration errors.

...

The configuration procedure involves 3 the following steps:

  1. Configuration of the Fragments - i.e. the protocol, connection and authentication methods to be used for the source and target parts of the operation.
  2. Configuration of the Profile - i.e.
    • the operation to be carried out (e.g. copy or move),
    • the fragments specified in Step 1 that are to be used for the source and target parts of the transfer and
    • any specific directories that are to be used.
    • Note that the Profile can also be used to specify other elements such as any notifications to be made or preprocessing that is to be carried out. These will be described in other parts of this manual.
  3. Calling the Configuration configuration and Profile profile from the command line, a batch file or via the JADE API.

...

The first step in the configuration is to configure the ProtocolFragments to be used for the transfer from the source. Other fragments are not required for this example.

Fragments are  are XML elements that specify how transfers are to be carried out. Protocol fragments can be thought of as predefined connection specifications. They are protocol-specific - the FTP protocol, for example, brings a different set of features and constraints than WebDAV protocol.

Fragments are not operation-specific - a fragment could be used as the target for one operation and then as a source for a subsequent one or in a Copy operation and then in a Remove.

Any number of Fragments fragments can be predefined in a Configurationconfiguration.

Fragments are given name attributes, with which they will be referenced from the file transfer profile as shown in the next step.

...

The XML hierarchy for the FTPFragment for this example is structured as follows:

...

  • Only a BasicConnection element with a HostName Hostname and optional Portnumber is Port is possible - URL connections are not possible.
  • Only BasicAuthentication with an Account (i.e. user name) and optional Password is possible: SSH authentication, for example, requires that the SFTP protocol is used.

...

The second configuration step is to define the Profile, which is operation-specific. For example, a Profile for a Move Operation requires source and target to be specified where as a Remove operation only requires a source.

The operation in the current example is Copy for which a source and a target elements (CopySource and CopyTarget respectively) have to be specified.

The type of fragment to be used for the source part of the transfer - here an FTPFragmentRef element - is specified in the CopySourceFragmentRef element.

The FTP fragment itself is then specified in the FTPFragmentRef element's ref attribute.

In this example, the CopyTargetFragmentRef is used to specify that the target is to be local. The target directory is specified in the Directory element, which is a sibling of the CopyTargetFragmentRef reference element.

...

Example calls for Windows and Unix systems can be found on our Configuring File Transfers with the JADE Client page.

Further Information