| sei_call | R Documentation |
Monta o envelope SOAP para operation com params, envia via
httr2 e devolve a resposta como xml_document. Trata erros HTTP
e SOAP Fault (o SEI retorna falhas em HTTP 500 com faultstring).
sei_call(
operation,
params = list(),
config = sei_config(),
soap_action = "SeiAction",
ns_prefix = "sei",
ns_uri = "Sei",
timeout = 60,
verbose = FALSE
)
operation |
Character. Nome da operação SOAP. |
params |
Lista nomeada de parâmetros (ver |
config |
Um objeto |
soap_action |
Character. Valor do cabeçalho |
ns_prefix, ns_uri |
Namespace da operação (ver |
timeout |
Numérico. Tempo máximo da requisição em segundos (padrão 60). Se esgotado (ou em falha de conexão), a função para com mensagem clara. |
verbose |
Logical. Se |
Um xml2::xml_document com a resposta SOAP.
## Not run:
doc <- sei_call("listarUnidades",
params = list(SiglaSistema = "HORTENSIAS",
IdentificacaoServico = "chave"),
config = sei_config())
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.