1) Configurar as seções:
[HTTPJOB], [HTTPV11],[HTTPREST],[HTTPURI],[TAF_CFGJOB],[OnStart]
Exemplo de configuração do ini no Release 23:
[P1223REST]
SourcePath=C:\TOTVS\P1223REINF20\apo
RootPath=C:\TOTVS\P1223REINF20\protheus_data
StartPath=\system\
RpoDb=top
RpoLanguage=portuguese
RpoVersion=120
TopMemoMega=1
dbserver=localhost
dbdatabase=MSSQL
dbalias=P1223REINF20
dbport=ZZZZ
startsysindb=1
[Drivers]
Active=TCP
[TCP]
TYPE=TCPIP
Port=5XXX
[General]
InstallPath=C:\
Segmento=ZZZZZZ
Serie===ZZ
MAXSTRINGSIZE=30
MAXQUERYSIZE=31960
[LICENSECLIENT]
SERVER=ZZ.YYY.XX.WWW
PORT=XXXX
[TDS]
ALLOWAPPLYPATCH=*
ALLOWEDIT=*
[OnStart]
JOBS=HTTPJOB,TAF_CFGJOB
RefreshRate=120
[HTTPV11]
Enable=1
Sockets=HTTPREST
[HTTPJOB]
MAIN=HTTP_START
ENVIRONMENT=P1223REST
[HTTPREST]
Port=8081
URIs=HTTPURI
Security=0
[HTTPURI]
URL=/rest
Instances=1,2
CORSEnable=1
AllowOrigin=*
[TAF_CFGJOB]
Main=TAF_CFGJOB
Instances=5,5,1,1
PrepareIn=99
nRefreshRate=50
ENVIRONMENT=P1223REST
;[HTTP]
ENABLE=1
PORT=8081
4) Para realizar trace, seguir os procedimentos:
1.1) Excluir console.log appserver do REST;.
1.2) Incluir no ini do REST, na sessão do enviroment, a chave FWTRACELOG=1;
( http://tdn.totvs.com/display/PROT/DT_Logs_de_Sistema )
1.3) Incluir no ini do REST, na sessão GENERAL a chave CONSOLELOG=1;
1.4) Parar e subir o serviço do REST.