The gateway listener performs the action requested by the relay service. For example, if a database operation is required to be performed, but the service is available on the gateway machine, the gateway listener picks up the message from the relay service and completes the processing. The result is then returned to the relay service or relay channel that is configured.
To create a service on the gateway:
This service would be invoked by the relay service on the proxy machine through the socket call. In this case, a service (sqlServicedel) is used to perform a database operation, for example, a delete action through an SQL object.
For more information on how to create a service and constructing channels, see the iWay Service Manager User's Guide.
To configure the RVIAttach channel:
As an example, assume that a channel exists with a file listener that picks up files from a specified directory. After the file is picked up, a service on the gateway is invoked through the attach point and the result is written to an output directory.
To configure the channel to invoke the remote gateway service:
To test the RVI invocation using the attach point and gateway:
The file read is successful indicating a success test run on the RVIAttach side. To see if the gateway service was invoked successfully, check the database to see if the database operation was completed successfully on the gateway side. If the database operation was completed, this indicates that the gateway service ran successfully.