Using Services

Hide Topic ContentsShow Topic Contents
  1. Available Services
  2. Service Connection Example
  3. Change Connected Service or Database
  4. Using http with WCF services
  5. Delayed Service Startup

Available Services

The following services are available:

Name

Description

ATS Inspect CAD Conversion Service

Used by CAD reports. The reports need the CAD models to be in a specific format and this service makes sure a requested model is in that format, or is converted on the spot if it isn’t.

ATS Inspect CAD Report Service

Provides functionality for CAD reports such as retrieving a list of products, views, units, etc.

ATS Inspect Image Reporting Service

If a unit has defects that were collected against one or more CAD views, it returns 2D snapshots of the CAD view, making sure that every defect is visible in at least one of these snapshots.

ATS Inspect WCF Communication Service

Processes Inspect related data recieved from flat files, RS-232 and TCP/IP sockets.

ATS Inspect WCF Data Service

Handles requests to deliver data to various Inspect clients and services.

ATS Inspect WCF Event Service

Recognizes, processes and delivers events related to Inspect collected data.

ATS Inspect WCF Travel Service

Processes travel ticket requests.

Default port and startup settings

Test if a service is running

Service Connection Example

Let's say that three stations need to connect to the database using WCF Data Service as follows.

The three stations connect to the same Data Service.

The Data Service then links to the database on another server.

Station to Data Service

The stations link to the Data Service using the config files for the applications. For instance, in Cockpit.exe.config it would say:

<dataServices>

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

</dataServices>

The basePort number must be unique for each service on the same server. This number is set when the service is installed but can be modified later in the config file for the service.

The name field does not need to correspond to the name of the database.

Data Service to Database

The Data Service will link to the database (Data03) using the following lines in WcfDataServiceHost.exe.config:

<connectionStrings>

<clear/>

<add name="Inspect" providerName="SQLOLEDB" connectionString="Server=ServerBlue;Database=Data03;User Id=tom;Password=pass01;"/>

</connectionStrings>

The name field must be "Inspect" or the service will not work.

Change Connected Service or Database

There are two ways in which the database connection can be modified:

Change the service that is called from the application config file (Data Service only)

Change the Database that is called from the service config file

For information on how these connections can be modified see here.

If the data service is running and the licensing endpoint is changed the data service will continue to send its cached value until it is restarted.

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

Delayed Service Startup

If a service tries to start before a database is ready then it will fail. For this reason the services have a delayed startup time of 120 seconds:

If a service fails to startup automatically then please see the troubleshooting section for further assistance.

Can we improve this topic?