How to Install REST Messenger - YesBookIt and MyDesktop

This guide is designed to be carried out by a customer’s IT Provider

Overview

REST Messenger is used to facilitate the connection between a REST Database and 3rd party providers such as YesBookIt and MyDesktop

REST Messenger Pre-requisites

  • REST Messenger license module - If you are setting up REST Messenger for the first time, please contact Rockend to acquire the license module and instructions for installing a new REST professional License
  • The REST Database must be on the latest version, REST Messenger Installation Package can be downloaded from here: https://rockend.exavault.com/share/view/k9wt-b6gi37
  • Microsoft IIS enabled in Windows features
  • Internet service with a static IP address
  • Port forward TCP/IP Port 82 to the server from the internet
  • Windows Server Operating systems are required for connection to My Desktop  

Steps

REST Messenger installation

  1. The REST Messenger version MUST match REST Professional, ensure that REST messenger is upgraded during any future REST Professional Upgrades.
  2. Working on the REST Professional Database server, run the REST Messenger installation and follow the default prompts.
  3. The Database Connection Wizard should appear, complete the wizard using the options below
  4. Browse to the IIS Scripts folder: C:\inetpub\wwwroot\scripts (Ensure Microsoft IIS has been enabled).
  5. Browse to the REST Professional Database.
  6. Ensure the Regional & Language / Locale is set to Australia, and the date format to DD/MM/YYYY

Microsoft IIS Configuration

If required, refer to point 3 of the installation supplement for an illustrated guide.

  1. On your modem / router port forward TCP/IP port 82 from the internet to the REST Messenger server.
  2. Ensure that the IIS Web Server role has been installed on the Server, as well as the Windows IIS Admin service.
  3. Within Server Manager under IIS Web Server, enable CGI.
  4. Open C:\inetpub\wwwroot\scripts in Explorer and create a new blank text file, rename to RESTdata.dtd
  5. Within IIS Manager, create a new Web Site with the following specifics.
  6. Site Name: REST Messenger
  7. Physical Path: Browse to c:\inetpub\wwwroot\scripts
  8. Port: 82
  9. Edit the security on the REST Messenger Scripts folder (c:\inetpub\wwwroot\scripts) and add the IUSR account with MODIFY permissions. (The default user for IIS anonymous is IUSR – Under Website > Authentication > Anonymous access).

If this is a Terminal Server and users will be running REST Professional, these users will also need READ access to the scripts folder.

  1. Open the Handler Mappings for the new web site and add a new Module Mapping. (When complete, select yes if you are prompted to allow an ISAPI extension).
  2. Request Path: *.exe
  3. Module: Select CGI Module
  4. Executable: c:\inetpub\wwwroot\scripts\RESTMessenger.exe
  5. Name: RESTMessenger

REST Professional Configuration

  1. Edit the security on the REST Professional Database Share and add the IUSR account with MODIFY permissions.
  2. Working inside REST, confirm the REST Professional Database has the REST Messenger license module installed.  Other > About REST > REST Info > Client > Modules (Refer to the installation supplement).
  3. Activate Unique Alpha Codes. Other > Utilities > System Options > Miscellaneous. Move the Response Code dialog to the side and confirm that Enforce unique alphas has been ticked. (Refer to the installation supplement).
  4. Create a new REST user. The password will be used by MyDesktop / Yes Book It, the other fields are cosmetic except for the REST Messenger acct tick box. 

Files > User / Password

The details are not case sensitive

  • First Name: Rest               
  • Last Name: Messenger
  • Initials: IR
  • Security Level: Statistics / Company Details / Passwords & above
  • Password: type in a small 5 character - alpha / numeric password
  • REST Messenger acct: Must be ticked – This option is only present when the REST Messenger module has been installed

Final Testing

Test the connection by creating and entering a URL from the samples below:

Basic Internal Test: http://127.0.0.1:82/RESTMessenger.exe 

                Should result with “No parameters received”

Full Internal Test:  http://127.0.0.1:82/RESTMessenger.exe?type=owners&username=1&password=IREST

Full External Test: http://EnterExternalIP:82/RESTMessenger.exe?type=owners&username=1&password=IREST

Password in this example is IREST

Should result with a list of owners

Completion

Pass the following details to the client so they can document and configure YesBookIt or MyDesktop
(all of this information can be collected from within the URL string).

IP: (IE: External IP Address)

Port: 82

Username: 1

Password: (IE: REST user Password)

Location: /restmessenger.exe

Test URL: (IE: as used in the Full External Test)

Troubleshooting

  • Ensure Inbound TCP/IP port 82 has been forwarded from the internet to the REST Messenger Server, if the Windows Firewall is enabled ensure adequate inbound rules are added.
  • The IUSR user can be confused with other user accounts such as the IUSRS Group. The IUSR is a specific build in user, ensure this user has modify permissions on the c:\Inetpub\wwwroot\scripts\ folder as well as all REST Database Folders

Installation Supplement

REST Professional License Modules

Check that your REST Professional license includes REST Messenger. Start REST Professional, from the menu select              

Help > About REST > REST Info > Client > Modules

http://dyzz9obi78pm5.cloudfront.net/app/image/id/59f7c8976e121c100dd2251c/n/1509410961572.jpg

Enforce Unique Alpha’s

  1. Confirm Unique Alphas are enabled. In most cases they already will be but you must check to confirm.
  2. In REST Professional select Other>Utilities>System Options and open the Miscellaneous Tab.  You will get a prompt for a response code.  Move this prompt aside if it obstructs any information behind it. If 'Enforce unique alphas' is 'greyed' and the check box to the left of it is ticked, then Unique Alphas are already enforced and you can close the prompt form and proceed with the next section. 
  3. If 'Enforce unique alphas' is not checked, then contact Rockend support for a Response Code.  When you get the response code you can tick 'Enforce unique alphas' checkbox and select OK.
  4. Select OK again on the next prompt and REST will then check for duplicates. 
  5. If duplicates are found REST will allow you to save them in a text file. A REST user with sufficient privileges will need to look up each duplicated Alpha in REST and make the appropriate changes. Refer to http://kb.rockend.com/help/activating-unique-alphas

Add permissions to the REST Professional Database Share

Open Windows Explorer and browse to the REST Professional Database share.  Right click the folder, select properties and then select the security tab. Add the IUSR account and tick "MODIFY", click Ok.
 http://dyzz9obi78pm5.cloudfront.net/app/image/id/59f7c8978e121cc73c635353/n/1509410961625.jpg

Manually Configuring REST Messenger

Overview

The database connection wizard will create the ConfigDataSources folder and connect to one database. If you need to add an extra REST Professional Database or a REST Professional Database is moved to a different computer on your LAN then read these instructions carefully.

REST Professional database locations

  • REST Messenger requires a ConfigDataSources folder in the \inetpub\wwwroot\scripts folder.
  • A ConfigDataSources folder is created in the REST Professional folder (eg. C:\REST) on each computer where REST Professional is installed.
  • Inside the ConfigDataSources folder, a folder called "1" contains a workstation.ini file. (eg.C:\inetpub\wwwroot\scripts\ConfigDataSources) If there is more than one REST Professional database, they will also have folders named “2”, “3”, etc with workstation.ini files too.
  • The workstation.ini file contains the data paths to the REST Professional database locations. REST Messenger will read this file to determine were the data is located on the network.

How to manually add a database location to REST Messenger

  1. Copy the C:\REST\ConfigDataSources\1\workstation.ini file from an existing workstation that is currently using REST Professional.
  2. Paste it into the C:\Inetpub\wwwroot\Scripts\ConfigDataSources\1 folder on the computer where IIS is installed.
  3. Edit the workstation.ini file using notepad and modify the data paths if required. UNC is the preferred method if the REST Professional Database is located on another computer. (Note: Do not use TCP/IP numbers or paths that contain a full stop, the indexing program will not read the data files correctly if a full stop is present in the path name).
  4. Also ensure that there is a reference to a documents folder in the [Data folders] section of the workstation.ini file. If the line is missing it should be added manually immediately below the ‘UpgradeFolder=’ line. See example below.

Example content of the workstation.ini file

CurrentFolder=\\server_name\share_name\REST \data\

HistoricalFolder=\\server_name\share_name\REST \History\

ImagesFolder=\\server_name\share_name\REST \Images\

WordFolder=\\server_name\share_name\REST \Word\

LogFolder=\\server_name\share_name\REST \Log\

UpgradeFolder=\\server_name\share_name\REST \Upgrade\

DocumentFolder=\\server_name\share_name\REST\Documents\

Multiple REST Professional databases

  • If using multiple databases then you will have to copy the relevant workstation.ini files from the other ‘number’ folders in the workstations C:\REST\ConfigDataSources folder (2, 3, 4 etc). 
  • These should be copied into corresponding folders in the C:\Inetpub\wwwroot\Scripts\ConfigDataSources folder of the IIS server. 
  • Each of these workstation.ini files should be checked to ensure they are pointing to the correct data path.  Note: Each of the workstation.ini files will have different data paths reflecting the different databases that REST Professional has access to.
  • When connecting to different REST Professional databases via REST Messenger the username specifies which folder to use: eg. http://EnterExternalIP:82/RESTMessenger.exe?type=owners&username=1&password=IREST contains "username=1" which means use the locations in the workstation.ini located in folder "1" in the ConfigDataSources path.

Microsoft IIS Illustrations IIS 7 - 7.5 - 8.0 Configuration

  1. For Windows Server 2012: Select "Server Manager" -> "IIS" ->  "Roles and Features " -> “Tasks” -> “Add Roles and Features”. Go through the wizard to enable CGI.

   http://dyzz9obi78pm5.cloudfront.net/app/image/id/59f7c897ad121c903ea943b1/n/1509410961689.jpg  

  1. For Windows Server 2008: Select "Server Manager" -> "Roles" ->  "Add Role Services" and enable CGAdd Role Services for CGI
     
  2. For Windows Vista or 7:  :  Select "Control Panel" -> "Programs and Features" -> "Turn Windows features on or  off" -> "Internet Information Services" -> "World Wide Web Services" -> "Application Development Features". Once you have CGI role enabled, you can start up the      "Internet Information Services (IIS) Manager”.






http://dyzz9obi78pm5.cloudfront.net/app/image/id/59f7c8978e121c4b3f635276/n/1509410961750.jpg


  1. Open “Internet Information Services (IIS) Manager”. Right-Click on “Sites”; select “Add Web Site”

http://dyzz9obi78pm5.cloudfront.net/app/image/id/59f7c897ad121cd23ea944c2/n/1509410961786.jpg  


  1. Enter "Site name" as RESTMessenger, under “Physical Path” click the browse button and select the location where the REST Messenger program was installed (C:\inetpub\wwwroot\scripts) and then change the "Port" from 80 to 82 and click Ok. (Note: If port 82 is already being used then specify a different port.)  

http://dyzz9obi78pm5.cloudfront.net/app/image/id/59f7c8986e121c8008d2273d/n/1509410961829.jpg

  1. Click on the "RESTMessenger" site that you have just created and then select "Handler Mappings"  

     

  1. Select "Add Module Mapping" from the menu on the right. For "Request path" enter *.exe, for "Module" select "CgiModule" from the list and then browse to RestMessenger.exe file (you will need to change the file dialog to find *.exe), for "Name" enter RESTMessenger and then click OK.

http://dyzz9obi78pm5.cloudfront.net/app/image/id/59f7c898ad121ccd40a94319/n/1509410961975.jpg

  1. The following dialog will appear, click "Yes"

http://dyzz9obi78pm5.cloudfront.net/app/image/id/59f7c8988e121cc63c635385/n/1509410962018.jpg

  1. Right click "RESTMessenger" site and select "Edit permissions", “Security”, select the local IUSR account and tick "Write" then click Ok. Open

http://dyzz9obi78pm5.cloudfront.net/app/image/id/59f7c898ec161c8e33f1e3cb/n/1509410962048.jpg 

  1. Open Windows Explorer and browse to the REST data folder. Right click the folder, select properties and then select the security tab. Add the IUSR account and tick "Write", then click OK

http://dyzz9obi78pm5.cloudfront.net/app/image/id/59f7c898ec161c072ff1e4e7/n/1509410962079.jpg 





http://dyzz9obi78pm5.cloudfront.net/app/image/id/59f7c8986e121c080bd22516/n/1509410962118.jpg

IIS 6 Configuration Open “Internet Information Services (IIS) Manager” 


  1. Right-Click on “Web Sites”; select “New” and choose “Web Site…” A Popup window will appear; click Next.
    http://dyzz9obi78pm5.cloudfront.net/app/image/id/59f7c8998e121c4b3f635277/n/1509410962150.jpg

  2. Specify “RESTMessenger” as a Description; then click Next.
    http://dyzz9obi78pm5.cloudfront.net/app/image/id/59f7c899ad121c1f3ca943db/n/1509410962186.jpg 

  3. Specify Port82; then click Next (Note: If port 82 is already being used then specify a different port.)
    http://dyzz9obi78pm5.cloudfront.net/app/image/id/59f7c8996e121cc20ad2256c/n/1509410962217.jpg