You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 9 Next »

Operation

  • The Editor can be opened most easily through a double-click on a shortcut to the sos.xml.editor.exe binary.
  • Clicking File -> Open will open a tab for a new XML configuration file

Specifying the XSD schema

Developing a Configuration

Once an XML element  has been specified, all mandatory child elements of that element will be automatically added to the configuration and shown in the left hand pane of the editor as shown in the following screenshot:

The right hand pane of the editor shows:

  • the reference documentation for the element currently selected,
  • entry fields for any attributes that can / have to be specified for the element and
  • a list of any child elements already specified (not shown in the screenshot)

The Configurations element in the JADE Reference schema shown in the screenshot above is the root XML element and therefore automatically specified when a new configuration is opened, along with its mandatory child elements.

Adding Child Elements

Optional child elements can be listed by right-clicking on an element and then selecting the required child from the list of available options as shown in the next screenshot:

A Completed Configuration

The next screenshot shows a completed configuration that will download a series of files from our online test FTP server and write them to the local file system.

Note that starting point for the processing of this configuration is the Profile element which specifies that:

  • the files are to be copied,
  • the ftp_demo_sos-berlin configuration fragment is to be used for the source part of the operation,
  • the files are to be transferred from the directory defined using  / file path,
  • the files are to be transferred to the C:\Users\aa\jade_demo\a directory.

The structure of the configuration is described in more detail in the JADE User Manual - Configuring and Running File Transfers article and its child articles.

Saving the configuration

The configuration is saved in the standard way by clicking on the diskette symbol in the upper left menu or by using a right click on the configuration Edit1 tab.

This causes the configuration to be saved by default in the following formats:

  • the XML format that will become the new standard for JADE with release 1.11,
  • the settings.ini format that will that will remain standard until release 1.11.

More information about the change of formats can be found in the JADE User Manual - Configuration Formats & Tools article.

The following code boxes show the simple configuration described above in XML and in settings.ini formats:

Simple file transfer configuration in XML format
<?xml version="1.0" encoding="utf-8"?>
<Configurations>
  <Fragments>
    <ProtocolFragments>
      <FTPFragment name="ftp_demo_sos-berlin">
        <BasicConnection>
          <Hostname><![CDATA[test.sos-berlin.com]]></Hostname>
        </BasicConnection>
        <BasicAuthentication>
          <Account><![CDATA[demo]]></Account>
          <Password><![CDATA[demo]]></Password>
        </BasicAuthentication>
      </FTPFragment>
    </ProtocolFragments>
  </Fragments>
  <Profiles>
    <Profile profile_id="ftp_server_2_local">
      <Operation>
        <Copy>
          <CopySource>
            <CopySourceFragmentRef>
              <FTPFragmentRef ref="ftp_demo_sos-berlin" />
            </CopySourceFragmentRef>
            <SourceFileOptions>
              <Selection>
                <FilePathSelection>
                  <FilePath><![CDATA[/]]></FilePath>
                </FilePathSelection>
              </Selection>
            </SourceFileOptions>
          </CopySource>
          <CopyTarget>
            <CopyTargetFragmentRef>
              <LocalTarget />
            </CopyTargetFragmentRef>
            <Directory><![CDATA[C:\Users\aa\jade_demo\a]]></Directory>
          </CopyTarget>
        </Copy>
      </Operation>
    </Profile>
  </Profiles>
</Configurations>
Simple file transfer configuration in settings.ini format
 [protocol_fragment_ftp@ftp_demo_sos-berlin]
protocol                            = ftp

host                                = test.sos-berlin.com
user                                = demo
password                            = demo

[ftp_server_2_local]
operation                           = copy

source_include                      = protocol_fragment_ftp@ftp_demo_sos-berlin
file_path                           = /

target_protocol                     = local
target_dir                          = C:\Users\aa\jade_demo\a

Automatic Configuration Validation

Note that during saving the XML Editor automatically validates the configuration against the Schema and highlights errors.

Running the configuration

The simple configuration described above is started from the command line or in a batch file on Windows systems using one of the following calls, where sos-berlin_demo_2_local is the name given to the configuration on saving:

Running the file transfer XML configuration on Windows format
jade.cmd -settings="sos-berlin_demo_2_local.xml" -profile="ftp_server_2_local"
Running the file transfer settings.ini configuration on Windows format
jade.cmd -settings="sos-berlin_demo_2_local.ini" -profile="ftp_server_2_local"

 

More information including example calls for Unix systems can be found in the JADE User Manual - Configuring and Running File Transfers article.

 

  • No labels