Histórico da Página
...
- SOAP
- WSDL - http://<SERVIDOR>:PORTA/iw-editor/services/PolicyExecution?wsdl
- Execução de política (POST) -
- - http://<SERVIDOR>:PORTA/iw-editor/services/PolicyExecution/executePolicy?xmlInputString=
- - http://<SERVIDOR>:PORTA/iw-editor/services/PolicyExecution/executePolicy?xmlInputString=
- Execução de política batch (POST) -
- - http://<SERVIDOR>:PORTA/iw-editor/services/PolicyExecution/executePolicyBatch?xmlInputString=
Bloco de código language xml title Exemplo XML <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsp="http://intellector.tools.com.br/services/WSPolicyExecution/"> <soapenv:Header/> <soapenv:Body> <wsp:executePolicy> <xmlInputString> <![CDATA[<?xml version="1.0" encoding="UTF-8"?><raiz> <programa>POLITICA</programa> <layout>Layout_POLITICA</layout> <tipo>TIPO_POLITICA</tipo> <usuario>admin</usuario> <senha>tools01</senha> <VARIAVEL_ENTRADA_01>S</VARIAVEL_ENTRADA_01> </raiz>]]> </xmlInputString> </wsp:executePolicy> </soapenv:Body> </soapenv:Envelope>
- Execução de política batch (POST) -
- http://<SERVIDOR>:PORTA/iw-editor/services/PolicyExecution/executePolicyBatch?xmlInputString=
Bloco de código language xml title Exemplo XML <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsp="http://intellector.tools.com.br/services/WSPolicyExecution/"> <soapenv:Header/> <soapenv:Body> <wsp:executePolicyBatch> <xmlInputString> <![CDATA[<?xml version="1.0" encoding="UTF-8"?> <lote> <programa_lote> <programa>POLITICA</programa> <layout>layout_POLITICA</layout> <tipo>TIPO_POLITICA</tipo> <usuario>admin</usuario> <senha>tools01</senha> </programa_lote> <lotes> <raiz> <VARIAVEL_ENTRADA_01>VALOR</VARIAVEL_ENTRADA_01> </raiz> </lotes> </lote>]]> </xmlInputString> </wsp:executePolicyBatch> </soapenv:Body> </soapenv:Envelope>
- REST
- Autenticação no Servidor: http://<SERVIDOR>:PORTA/iw-editor/services/login/perform
- Authorization - "Basic Auth" - enviar "Username" e "Password"
- Execução de política: http://<SERVIDOR>:PORTA/iw-editor/services/policy/execute
- Efetuar primeiro a autenticação no servidor e enviar no Header a "Authorization":"Basic XXX", onde XXX é a tupla "usuario:senha" em Base64 (ver exemplo abaixo)
- Autenticação no Servidor: http://<SERVIDOR>:PORTA/iw-editor/services/login/perform
Consulta Execução de Plugins:
- SOAP
- WSDL - http://<SERVIDOR>:PORTA/iw-editor/services/ConsultarAuditoriaAcesso?wsdl
- Consultar Auditoria de Plugin (POST) -
- http://<SERVIDOR>:PORTA/iw-editor/services/ConsultarAuditoriaAcesso/ConsultaAuditoriaAcesso?XMLConsultaAuditoriaAcessoRequest=
Bloco de código language xml title Exemplo XML <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsp="http://intellector.totvs.com.br/services/WSPlugins/"> <soapenv:Header/> <soapenv:Body> <wsp:ConsultaAuditoriaAcesso> <XMLConsultaAuditoriaAcessoRequest> <![CDATA[<?xml version="1.0" encoding="UTF-8"?> <consultaAcesso> <username>admin</username> <password>tools01</password> <codExecucao>698DF368-B946-43C5-9D55-F12E845117ED</codExecucao> </consultaAcesso> ]]> </XMLConsultaAuditoriaAcessoRequest> </wsp:ConsultaAuditoriaAcesso> </soapenv:Body> </soapenv:Envelope>
- Autenticação no Servidor: http://<SERVIDOR>:PORTA/iw-editor/services/login/perform
- Execução de política: http://<SERVIDOR>:PORTA/iw-editor/services/policy/execute
Executando via Servlets
Para executar uma política, basta submeter um post para o servlet runpolicy do TOTVS Intellector, passando o XML de entrada como conteúdo do request; veja abaixo um snippet em código Java.
...
Visão Geral
Import HTML Content
Conteúdo das Ferramentas
Tarefas