AutoGRAPH.NET Service Config en

Материал из TK
Версия от 16:59, 12 февраля 2016; Admin (обсуждение | вклад) (Новая страница: «== Configuration == First, unpack AutoGRAPH.NET Service installation archive to any directory. Then you need to edit '''AutoGRAPHNETService.exe.config''' file. B…»)
(разн.) ← Предыдущая | Текущая версия (разн.) | Следующая → (разн.)
Перейти к: навигация, поиск

Configuration

First, unpack AutoGRAPH.NET Service installation archive to any directory. Then you need to edit AutoGRAPHNETService.exe.config file. Below described most of configuration file keys:

<add key="address" value="http://localhost:800/"/>
<add key="address-json" value="http://localhost:810/"/>
<add key="common-directory" value="C:\ProgramData\AutoGRAPH Shell"/>
<add key="data-directory" value="C:\Users\denisio\AppData\Roaming\AutoGRAPH Shell\Data"/>
<add key="users-directory" value="C:\TK\DataLoader\_testusers"/>
<add key="devices-directory" value="C:\TK\DataLoader\_testdevices"/>
address local endpoint of WCF handler. Used url:port format
Some usage cases:
  • http://192.168.1.3:8100 - accept connections only at local IP-address 192.168.1.3 and TCP-port 8100 (usually this case used if many NIC's installed or many IP addresses at single NIC)
  • http://0.0.0.0:8100 or http://*:8100- accept connections at all NIC's and all local IP addresses and TCP-port 8100
  • http://127.0.0.1:8100 - accept connections only locally (usually used with integrate to local services, like 1C, Microsoft Dynamics and so on). All request from outside will ignored.
address-json local endpoint of WCF handler. Used url:port format
Some usage cases:
  • http://192.168.1.3:8300 - accept connections only at local IP-address 192.168.1.3 and TCP-port 8300 (usually this case used if many NIC's installed or many IP addresses at single NIC)
  • http://0.0.0.0:8300 or http://*:8300- accept connections at all NIC's and all local IP addresses and TCP-port 8000
  • http://127.0.0.1:8300 - accept connections only locally (usually used with integrate to local services, like 1C, Microsoft Dynamics and so on). All request from outside will ignored.
common-directory
common directory (directory structure is equal of common directory AutoGRAPH.Pro – subdirectories Schemes, GeoFences, Devices and so on required)
data-directory
data directory of AutoGRAPH DataLoader or AutoGRAPH Server 3.x or 4.x or 5.x
ddd-directory DDD-files directory (tachograph driver card files)
users-directory
users directory of AutoGRAPH Server 4.x or 5.x If this parameters specified - you will need authenticate with Login method before use any other method, read here for more information.
devices-directory
device file directory of AutoGRAPH Server 4.x или 5.x, usually this directory have "DBF" name

You can start service after edit config file and make request to service for generate proxy class:

svcutil.exe http://localhost:800/?wsdl /async /tcv:Version35 /ser:DataContractSerializer


svcutil will create AutoGRAPHSvc.cs file with proxy-class for accessing to WCF-endpoint of AutGRAPH.NET Service and output.config with WCF client configuration.