Deploy the Cobra Web Service Host

The Cobra Web service host must be configured and deployed on the machine where Cobra is installed.

Since the Cobra Web service runs through the network, it is required to allow the machine that hosts the Web service to listen to the applications from remote machines. By default, the host listens to port 8116 using the Transmission Control Protocol (TCP).

To configure and deploy the Cobra Web service host, complete the following steps:

  1. Locate the Cobra.WebService.Host.exe.config file that resides on the Cobra folder and open it using a text editor (such as Notepad).
  2. Find <add baseAddress="http://localhost:8116/CobraWebService/service" /> and replace localhost with the name of the machine.

    For example:

    <add baseAddress="http://COBWSHOST:8116/CobraWebService/service"/>

  3. Save and close the configuration file.
  4. Click Start > All Programs > Accessories. Right-click the Command Prompt and select Run as administrator.
  5. On the Administrator Command Prompt window, enter the following lines:

    "<Cobra Folder Path>\Cobra.WebService.Host.exe"-install

    The command deploys the host into the Windows services.

  6. Close the Administrator Command Prompt window.
  7. Check whether the host is running in the Windows Services. Browse the address from the configuration file in an internet browser. If the host is running, the page displays that you have created a service and provides details on how to test the service. If a page is not displayed, the host is either not configured correctly or is not running in the Windows services.