About Patroller Simple Host - Patroller 6.7

Genetec Patroller™ Administrator Guide 6.7

Product
Patroller
Content type
Guides > Administrator guides
Version
6.7
Release
6.7.1
Language
English
Last updated
2024-01-22

Simple Host is a WCF service in Genetec Patroller™ that allows an external third party application to retrieve hits and reads, in an XML format, from the Patroller. It also allows to push New Wanted entries to the Patroller.

What is the AutoVu Simple Host service?

Communication to the service is done through an Ethernet connection, and the service connection is configured using Microsoft Visual Studio.

About the contract

The Simple Host service uses .NET WCF to offer SOAP based access to the Patroller database. A contract is defined to identify the data access available to client applications.

Example:

Code

[ServiceContract(Name="SimpleHost", Namespace="http://autovu.com")]
public interface ISimpleHostContract
{
  [OperationContract]
  string GetLatestXGuidAndPlateNumber(int lastX);
  [OperationContract]
  string GetHitData(Guid hitGuid);
  [OperationContract]
  void AddNewWanted(string plateNumber, string plateState, 
                    int expirationDuration);
  [OperationContract]
  List <Guid> GetReadIds(DateTime from, DateTime to);
  [OperationContract]
  string GetReadData(Guid readGuid);
  [OperationContract]
  void RaiseHit(Guid readGuid, string hitPlateNumber, 
                string hitPlateState, 
                string category, HitColorEnum hitColor, 
                string attributeKeyValuePairs);
}