Monitore os documentos eletrônicos com o TOTVS Transmite.
Siga os passos a seguir e veja como é simples configurar.
Deck of Cards |
---|
|
Card |
---|
id | 1 |
---|
label | 1. Configuração do serviço REST |
---|
| Para habilitar o serviço REST, efetue as configurações abaixo no arquivo appserver.ini do TSS *IMPORTANTE: As configurações CORSEnable e AllowOrigin dentro da seção [HTTPURI] só devem ser habilitadas para ambientes on-premisse.
Bloco de código |
---|
firstline | 1 |
---|
title | appserver.ini |
---|
linenumbers | true |
---|
| ;--------------------------------------------------------------------------------------------
; WS REST
;--------------------------------------------------------------------------------------------
[HTTPJOB]
MAIN=HTTP_START
ENVIRONMENT=SPED
[HTTPREST]
Port=8044
IPsBind=
URIs=HTTPURI
Security=0
[HTTPV11]
Enable=1
Sockets=HTTPREST
[HTTPURI]
URL=/api/tss
PrepareIn=
Instances=1,10
CORSEnable=1
AllowOrigin=* |
|
Card |
---|
id | 2 |
---|
label | 2. Configuração do HTTPJOB |
---|
| Para habilitar o job HTTPJOBjobQueue, efetue as configurações abaixo no arquivo appserver.ini do TSS Incluir nas configurações do JOBS da seção [ONSTART] o jobQueue e HTTPJOB (declarado no passo 1) Bloco de código |
---|
title | appserver.ini |
---|
linenumbers | true |
---|
| ;===================================================
;================== Chamada dos Jobs ==============
;===================================================
[jobQueue]
main= jobQueue
environment=sped
[ONSTART]
JOBS = JOB_HTTP,JOB_WS,IPC_ONDEMAND,IPC_CONT,TSSTASKPROC,IPC_SMTP,jobQueue,HTTPJOB
REFRESHRATE=20 |
|
|