Páginas filhas
  • Intellector 9 - API - Executando Políticas

Versões comparadas

Chave

  • Esta linha foi adicionada.
  • Esta linha foi removida.
  • A formatação mudou.

...

  • 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=
    • Execução de política batch (POST) - 
      • - http://<SERVIDOR>:PORTA/iw-editor/services/PolicyExecution/executePolicyBatch?xmlInputString=
      • Bloco de código
        languagexml
        titleExemplo 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)

...

  • 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
        languagexml
        titleExemplo 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>

...