Registering Comm Servers

Hide Topic ContentsShow Topic Contents
  1. Viewing Comm Service Messages

To use a communications server you must register it first.

Select the Services tab.

Click Communication. The following screen will appear.

Click the Add button () in the lower left-hand corner.

The Comm Server creation window opens.

Entering Server Information

In the Machine Name field type the name of the server.

Modify the WCF Comm Server Endpoint Port if required. The default is 8400.

In the Start Bytes and End Bytes fields enter the characters that signify the start and the end of a message.

These characters must be a single byte and cannot appear anywhere else in the message.

Entering File Information

Use the Files section to specify the settings for the ASCII text files. If you are not using text files, you do not need to enable it.

Select the Files tab.

Click the Enable checkbox to turn file changes on.

Click the Add button ().

Click Browse and select the directory you wish to monitor for text files.

In the Extension field, enter the extension (wildcards are allowed) for the type of files you want Comm Service to read.

In the Check Interval field, enter how often, in seconds, you want Comm Service to check for files.

Click OK.

Entering Fixed Socket Information

Use the Sockets section to setup a “TCP/IP” connection. If you are not using TCP/IP to send data, you do not need to enter information here.

Fixed Sockets can be used to send data to the Communication Service without pushing files to the server but by sending data to TCP port(s).

You can use a Fixed Port to receive messages with the exact same content as used in files sent to the Communication service. The standard port for this is 1300.

Additionally you can send only the data, without the standard defined Start and End Byte and without a message ID. For this Flex Ports can be created where the Communication Service will expect data in the exact format as is expected by the message that is linked to that port. The default for these ports is 1025 with each additional port configured incrementing by 1.

Example message for Fixed Port
<0200 /PROD=3A1 /PLNT=LAP /BGID=BG1 /ID1=4385 /SRL=XEA55555 /LOT=SIE44 /ICLR=CHAMP /ECLR=GOLD /MDYR=1998>

Example message for Flex Port
/PROD=3A1 /PLNT=LAP /BGID=BG1 /ID1=4385 /SRL=XEA55555 /LOT=SIE44 /ICLR=CHAMP /ECLR=GOLD /MDYR=1998 0D

Select the Sockets tab.

Click the Enable checkbox to turn file changes on.
The checkbox is checked by default where messages are received on the specified port number (socket listen port).

In the Fixed Port field, enter the TCP/IP port number that the service should monitor.

Ensure that this port number is not being used by another application running on the server.

Entering Flex Socket Information

The Flex Socket Ports list identifies the TCP/IP ports that do not adhere to the prefix/suffix format. The Flex Socket Ports can be used to handle messages from devices where formatting the data to these standards is not possible. Each port will be configured to receive a single message type (since there is no embedded “message ID” that identifies the type of data).

You can add new ports, edit existing ones or delete ones you no longer need.

Select the Sockets tab.

Click the Add button () in the Flex Sockets section.

In the Description field, enter a unique description for the socket.

In the Port field, enter the TCP/IP port number that the service should monitor.
Ensure that this port number is not being used by another application running on the server. This value must be unique and cannot be the same as the port for the Fixed Socket messages.

In the Message drop-down list select one of the message types defined for Comm Servers.
For information on configuring Comm Service Messages, see here.

In the Message Delimiters section specify the Start Bytes and End Bytes for the message.

Click OK.

Entering IBM WebSphere MQ Information

Add an IBM WebSphere MQ connection as follows:

Select the IBM WebSphere MQ tab.

Click the Add button ().

In the Description field, enter a unique description for the connection.

Enter the Hostname where the Websphere MQ service is located.

In the Port field, enter the MQ port number that the service should monitor.
Ensure that this port number is not being used by another application running on the server.

Enter the Queue Manager.

In the Channel field, enter MQ channel from which the application will read messages.

In the Queue field, enter the MQ queue name.

Click Save.

Entering Microsoft MQ Information

Add a Microsoft MQ connection as follows:

Select the Microsoft MQ tab.

Click the Add button ().

In the Description field, enter a unique description for the connection.

In the Queue field, enter the MQ queue name.

In the Check Interval field, enter how often (in seconds) you want Comm Service to check for files.

Click OK.

Click OK in the bottom-right corner to save the server information.

Viewing Comm Service Messages

It is possible to view the actual messages received by the server as follows:

Select the Services tab.

Click Communication.

Select a server from the list on the left.

Click on Connect.

A list of the messages for that server is displayed. See example below including a error returned from the stored procedure linked to message ID 1.

Can we improve this topic?