Data Service

Data Service is the gateway between each application (Cockpit, Data Collect, etc.) and the database it wants to connect to.

Example

Let's say that a single station needs to be able to connect to three different databases using WCF Data Service as follows.

       The station connects to three Data Services split over two separate servers.

       The Data Services then link to databases on another three separate servers.

Station to Data Service

The station links to the Data Services using the config files for the applications. For instance, in Cockpit.exe.config it would say:

<dataServices>

<add name="Data01" server="ServerWest" bindingType="NetTcp" basePort="8500"/>

<add name="Data02" server="ServerWest" bindingType="NetTcp" basePort="8510"/>

<add name="Data03" server="ServerEast" bindingType="NetTcp" basePort="8500"/>

</dataServices>

Data Service to Database

The Data Service is linked to a database during installation and the information in the Data Service config file is encrypted.

To change the database that a Data Service calls to you must reinstall the Data Service.

Using http with WCF services

By default the WCF services use the Net.TCP protocol. However, if required, it's possible to change this to use the http protocol. In that case it may be necessary to configure a name space reservation in order for the service to run. Please see the following article which describes how to do this:

http://msdn.microsoft.com/en-us/library/ms733768(v=vs.100).aspx