Install the EMS Master Calendar API Web Service
Once you meet the prerequisites, to install EMS Master Calender API, you will:
-
Install/upgrade the database component in EMS Master Calendar
-
Configure EMS Master Calendar for Master Calendar API Web Service Use
Obtain the Installation Files
Contact your Professional Services Consultant or Customer Support to obtain the following components:
-
Master Calendar API (MCAPI.msi) – Installation file.
-
MCAPI_Script.sql – This SQL file is required to create the necessary API objects within your Master Calendar database.
Install/Upgrade the Database Component in Master Calendar
-
Obtain the MCAPI_Script.sql file.
-
Open Microsoft SQL Server Management Studio.
-
Within Microsoft SQL Server Management Studio, select File > Open > File. Locate the MCAPI_Script.sql file.
-
Select your Master Calendar database and execute the query (Query > Execute).
When the query execution has completed, a ‘Commandcompleted successfully’ message displaysin the Results section.
Install/Upgrade the Master Calendar API Web Service
Before beginning the installation process, please install or upgrade your Master Calendar databases as outlined in the Master Calendar Installation Instructions. You will also need to manually uninstall any previous versions of the Master Calendar API Web Service on your web server.
-
Download the MCAPI.msi file onto the web server that will be running the Master Calendar API Web Service (typically the web server that hosts your Master Calendar site.)
-
Run MCAPI.msi.
A Welcome Screen to the Master Calendar API Setup Wizard opens.
-
Click Next to begin the installation process.
The Destination Folder screen opens.
-
Select the destination folder.
The installation process creates a new physical directory on your web server based on the destination folder path entered (“MCAPI” in the example above.)
Do not install the Master Calendar API Web Service in the same physical directory as other EMS web-based products OR under a site running another version of Master Calendar or the Master Calendar API.
- Click Next.
The SQL Server and database information screen opens.
-
Enter your Master Calendar SQL Instance Name.
-
Enter your Master Calendar Database Name.
-
Click Next.
The Virtual Directory information screen opens.
-
The Virtual Directory Name defaults to the destination folder. We recommend that you keep the default setting. The installation process creates a virtual directory on your web server based on the virtual directory entered (“MCAPI” in the example above.)
The Master Calendar API Web Service should not be installed in the same virtual directory as other EMS web-based products OR under a site running another version of Master Calendar or the Master Calendar API.
-
Click Next.
The Ready to install Master Calendar API screen opens.
-
Click to install the Master Calendar API Web Service.
The Completed the Master Calendar API Setup Wizard screen opens.
-
Click Finish.
Configure Master Calendar for Master Calendar API Web Service Use
External applications require a pre-defined Master Calendar User account to authenticate to the Master Calendar API Web Service. The Master Calendar User account should not be granted any rights within the Master Calendar application itself. Please see the Master Calendar Configuration Guide for instructions on how to create a Master Calendar user account.
In the Sample Code examples below, use the Master Calendar account created in this section for the UserID and Password.
Verify the Master Calendar API
-
Open a browser and enter the following URL:
http://[ServerName]/MCAPI/MCAPIService.asmx
(replace [ServerName] with the name of your web server) -
Your browser should return a list of API calls.