The XML files in the Cleo Harmony, Cleo VLTrader, and Cleo LexiCom server directories have built-in preconfigured host and log file formats which become activated when the user configures them. This section explains the formatting of the host and log files.
Host files
Each available host type within the software comes pre-configured within an XML file in the \hosts\preconfigured directory. If a pre-configured host is activated, its XML file is copied to the \hosts directory and is then updated as the user further configures the host through the panels.
A host XML file is generally formatted as follows:
- One and only one
<Host>
element exists in the file. <Host>
may contain zero or more<Mailbox>
elements and zero or more<TradingPartner>
elementss.<Mailbox>
may contain zero or more<Action>
elements.- The class="path" identifies the VersaLex module that corresponds to this host type and tree level. It is a java class path relative to the base VersaLex bean package.
- The alias="value" cannot contain the backslash character (\).
<Property1>
,<Property2>
,<Property...>
do not actually exist. Some common property names and possible values do exist, but most are dependent on the specific host type.
<Host>
level properties and their definitions and values are as follows:
- <Address>
- The server address, either a fully-qualified name (recommended) or an IP address.
- <Port>
- The server port, either a specific port number or -1 to indicate the default port for the protocol.
- <Connecttype>
- The connection type. Possible values are:
- 0: system default
- 1: direct internet access
- 2: LexRas dial-up connection
- 3: GXS IBC dial-up connection
- <Phonebookentry>
- Existing Windows RAS phonebook entry
- <Ibcusername>
- GXS IBC account username
- <Ibcpassword>
- GXS IBC account password
- <Inbox>
- Any local or shared directory
- <Outbox>
- Any local or shared directory
- <Sentbox>
- Any local or shared directory
- <Notes>
- Any pertinent information
<Mailbox>
and <TradingPartner>
level each only have one common property:
- <Notes>
- Any pertinent information
<Action>
level properties and their definitions are:
- <Commands>
- Formatted command lines and syntax specific to hosts
- <Messages>
- Messages logged the last time the action was run
- <Notes>
- Any pertinent information
All pre-configured hosts are not created equally. The more generic host types contain little or no properties, while the more specific host types may contain almost all the required properties. The more information contained in the pre-configured host file, the less information the user must provide when the host is activated.
For example, the following generic HTTP/s host file provides no property values.
If you want to start with the generic HTTP/s host to connect to our example ABC VAN host, use the Cleo Harmony configuration panels to provide values for the following properties.
The best way to learn a property name and possible values for a specific host type is to use the Cleo Harmony UI to configure the host and then interrogate the XML file.
System log file
Located in \logs\VersaLex.xml, the system log file is also an XML file. While your VersaLex software is running, the log is continually appended with any messages generated by running actions or by the application shell. However, even though it is continuously updated, the log is always a valid and well-formed XML file.
The log XML file is formatted as follows:
- One and only one
<Log>
exists in the file. <Log>
may contain one or more<Session>
elements.<Session>
has the product name and version.<Session>
contains one<System>
, one<License>
, and one<Run>
.<System>
has information about the computer.<License>
has information about the installed license.<Run>
has the<Session>
starting date/time stamp,<Thread>
number,<Command>
number, and<Event>
number.<Run>
may contain one or more<Event>
elements.<Event>
contains either<Thread>
,<Detail>
,<Command>
,<File>
,<Transfer>
,<Request>
,<Response>
,<Result>
, or<End>
always followed by<Mark>
.<Thread>
marks the start of an action run, has run type and action path.<Detail>
provides extra detailed information anywhere in the flow.<Hint>
provides insight into possible cause of error or exception.<Command>
marks the start of a command within an action, has command text and line number.<File>
marks the start of a file transfer within a command, has file paths and counts. If the file being transferred is part of a zip archive, then the entry name is included. Further, if the file being transferred is part of an unzip operation, then the entry number is placed in brackets (e.g.,number=1[5] of 3
indicates this file is the fifth entry of the first zip file a total of three zip files that are being unzipped).<Transfer>
marks the completion of a file transfer, has transfer rate.<Request>
contains the protocol-specific request made to the host.<Response>
contains the protocol-specific response from the host.<Result>
marks the end of a command or file transfer, has resultant status. The<Result>
element also repeats<Command>
,<File>
, and<Transfer>
information so that this element alone can be used to determine command and file transfer results. The CRC-32 value, if available, is also included in the<Result>
element.<End>
marks the end of an action.<Mark>
has the date/time stamp and corresponding<Thread>
number,<Command>
number, and<Event>
number.
Because more than one action can be active at any given time, the <Thread>
number and <Command>
number references provide a means for grouping related <Event>s together.
The command line options allow an extra log file (same format) to be generated to a user-specified path (see Running from the command line). This log file is in addition to the overall system log file and contains only the messages generated by that session of the server.
The software provides a log file viewer for the active log file or any archived log file. Outside of , a log file can be viewed through any browser (like above) at any time, potentially with an XSL style sheet applied.
Comments
0 comments
Please sign in to leave a comment.