Reader Directives

The suffixes listed are prefixed by the current <ReaderKeyword> in a mapping file. By default, the <ReaderKeyword> for the FME Server Stream (Attribute) reader is FMESERVERSTREAM_ATTRIBUTE.

DATASET

The DATASET directive for FME Server Stream (Attribute) reader is not used.

FME_SERVER_HOST

This specifies the machine running an FME Server instance to read as a host name.

The FME Server must have proper permissions and be set up correctly to accept connections from a remote machine.

Required/Optional

Required

Mapping File Syntax

FME_SERVER_HOST myfmeserver

FME_SERVER_PORT

When connecting remotely, this specifies the TCP/IP port through which to connect to the FME Server.

The default port is 7071.

Required/Optional

Optional

Mapping File Syntax

FME_SERVER_HOST myfmeserver

FME_SERVER _PASSWORD

This directive contains the password of the user accessing the FME Server.

Required/Optional

Required

Mapping File Syntax

FME_SERVER_PASSWORD password

FME_SERVER _USERNAME

This directive contains the name of user who will access the FME Server. The named user must exist with appropriate permissions.

Required/Optional

Required

Mapping File Syntax

FME_SERVER_USERNAME admin

REPOSITORY_NAME

This directive is the name of FME Server repository containing the target workspace.

Required/Optional

Required

Mapping File Syntax

REPOSITORY_NAME repository

WORKSPACE_NAME

This directive is the name of the target workspace which contains an FME Server Stream writer.

Required/Optional

Required

Mapping File Syntax

WORKSPACE_NAME workspace

DEF

This specification is used to define the files read.

Required/Optional

Optional

Mapping File Syntax

The syntax of the DEF directive is:

<ReaderKeyword>_DEF <baseName>  [<attrName> <attrType>]+

Note: This directive is not used when the dataset is a file.

Example

The example below defines a roads feature type during a translation:

<ReaderKeyword>_DEFs roads