Expertsystemen

 

Data sources

xxllnc Expertsystemen can connect with Interbase databases, Oracle databases, MySQL databases, PostgreSQL databases, XML files, SOAP servers, and REST servers, and it can send emails.

These connections are called ‘data sources’.

First, we’ll run through the process of defining data sources. The next articles in this chapter are devoted to explaining the usage of each type.

Select the menu option Resources > Data sources to manage the data sources. This screen is also found in the xxllnc Expertsystemen Runner.

Select the type of connection you want on the left side of the screen. The [New] button will display the type you have selected.

New data source
New data source

If you press the [New] button, a new data source will be created. You can rename the data source by selecting the data source in the tree on the left and pressing [F2], or by using the right mouse button and selecting Rename. It is also possible to connect with SOAP, but the definition of a SOAP connection is done with the use of a separate XML-file.

In the screen Data sources you can see the description of the SOAP connection but you cannot edit it.

Example of an Oracle data source
Example of an Oracle data source

See below for a quick overview of the various data source types with short descriptions of the required parameters.

Interbase

An Interbase-/Firebird connection needs the following parameters:

  1. Server name : URL to the database server
  2. Database file: file name of the database, with the path relative to the server (this has to be a local path)
  3. Username: username for the database
  4. Password: password for the database
  5. Role: database role in Firebird or Interbase
  6. Charset : the character set of the database
  7. Use Unicode : if wanted, Unicode can be used

With the button Test connection you can check if the settings are correct.

Oracle

An Oracle connection needs the following parameters:

  1. Server name : URL to the database server
  2. SID: the databases’ SID
  3. Username: username for the database
  4. Password: password for the database
  5. Charset : the character set of the database
  6. Use Unicode : if wanted, Unicode can be used

MySQL

A MySQL connection needs the following parameters:

  1. Server name : URL to the database server
  2. Database file: file name of the database, with the path relative to the server (this has to be a local path)
  3. Username: username for the database
  4. Password: password for the database
  5. Charset : the character set of the database
  6. Use Unicode : if wanted, Unicode can be used

XML

An XML connection needs the following parameters:

  1. Filename : the full local path to the XML file and the filename (NOTE: absolutely no spaces allowed).

Email

For a tutorial on how to send an e-mail, see our tutorial on sending mail. An Email connection needs the following parameters:

  1. Servername: SMTP server address
  2. Server port: SMTP server port (default 25)
  3. Username: user name (optional, depending on the server settings)
  4. Password: password (optional, depending on the server settings)
  5. Security:
    • No security (information is not protected on the internet)
    • Implicit SSL (information is a little protected on the internet)
    • Explicit SSL (information is quite good protected on the internet)

SOAP

A SOAP connection is defined in an XML file. For more information, see SOAP connection definitions.

REST

A REST connection is defined in an XML file. For more information, see REST connection definition.