Data Transformation Engine XML Adapter Reference Guide

Chapter 5 – Using the Adapter URL Syntax
XML Data Adapter Reference Guide
10
Examples
From the GET > Source setting in an Input Card dialog, select XML Data. In
the GET > Source > Command field, enter:
FTP://user.pass@host/c:/forms/form7.xml
This command specifies that the form7.xml file will be retrieved. The URL can be
in the forms FTP, HTTP, or FILE.
To override the adapter command defined in input card 1, the command string for
the XML Data adapter is:
-IAXMLDATA1 ‘FILE://admin.host/c:/forms/form6.xml
This example command string causes a file named form6.xml residing on the
admin.host server to be retrieved and used.
Note The XML Data adapter requires hard-coded paths for all settings in the input and
output cards. These settings include the GET > Source > Command and the
InputData > Backup > FilePath settings for input cards, and the
PUT > Target > Command and OutputData > Backup > FilePath settings for
output cards. If hard-coded paths are omitted the file will be saved to the default
installation directory.
URL Syntax
Because the syntax for the rest of the URL varies depending on the scheme
selected, URL schemes that involve the direct use of an IP-based protocol for a
specified host on the Internet use a common syntax for the scheme-specific data:
//
user
:
password
@
host
:
port
/
url_path
Some or all parts of
user
:
password
@, :
password
, :
port
, and
url_path
may
be excluded. The scheme specific data starts with a double slash
// to indicate
that it complies with the common Internet scheme syntax. The
user:password
component conforms to the following rules:
user
An optional user name. Some schemes such as FTP allow the
specification of a user name.
password
An optional password. If present, it follows the user name, separated
from it by a colon. The user name and password are followed by an
at-sign (
@). Within the user and password field, any :, @, or /
characters must be encoded. See URL Encoding for more information.