Versões comparadas
Chave
- Esta linha foi adicionada.
- Esta linha foi removida.
- A formatação mudou.
Índice:
Índice | ||
---|---|---|
|
Introdução:
O Web Service Reports Fornece serviços para gerar relatórios do TOTVS Reports de forma Síncrona síncrona e assíncrona. O modelo de autenticação utilizado é o Basic Authentication.
Utilizando Web Service do RM Reports no Fluig
Como Funciona:
Estão expostos no wsReportswsReport alguns serviços, onde para consumi-los, é necessário enviar através de uma requisição um envelope SOAP , passando os parâmetros de cada serviço.
É necessário adicionar o parâmetro "DefaultDB" no arquivo de configuração do Host (RM.host.Service.exe.config).
Ex: <add key="DefaultDB" value="CorporeRM" />
O serviço é exposto pelo host conforme documentação abaixo:
Como Expor os Web Services do RM através do Host
Aviso | ||
---|---|---|
| ||
Para baixar os arquivos da aplicação exemplo em ASP.Net, clique aqui. |
Segue abaixo o detalhamento e exemplos de utilização dos serviços em envelope SOAP.:
Expandir | ||
---|---|---|
|
|
|
|
|
<tot:GetReportList>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Expandir |
---|
| ||||||
|
Request:
<soapenv:Envelope xmlns
|
|
|
|
|
|
|
|
|
|
|
|
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>
<GetReportMetaDataResponse
|
|
|
|
|
|
|
<xs:complexType>
<xs:sequence>
<xs:element
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Expandir | ||
---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<GetReportInfoResponse xmlns="http://www.totvs.com/">
<GetReportInfoResult xmlns:a
|
|
|
|
|
|
|
<RptFilterReportPar>
|
<FiltersByTable>
<RptFilterByTablePar>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<RptParameterReportPar>
|
|
|
|
|
|
|
|
|
|
<RptParameterReportPar>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Expandir | ||
---|---|---|
|
|
Request:
<soapenv:Envelope xmlns:
|
|
|
|
|
|
|
|
|
|
|
<RptFilterReportPar>
|
<FiltersByTable>
<RptFilterByTablePar>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<RptParameterReportPar>
|
|
|
|
|
|
|
|
|
|
<RptParameterReportPar>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Expandir | ||
---|---|---|
|
|
Request:
<soapenv:Envelope xmlns
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Expandir | ||
---|---|---|
|
|
|
Request:
<soapenv:Envelope
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Expandir |
---|
|
|
|
Request:
<soapenv:Envelope xmlns:soapenv="http://
|
|
|
|
|
|
|
|
|
|
|
<RptFilterReportPar>
|
<FiltersByTable>
<RptFilterByTablePar>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<RptParameterReportPar>
|
|
|
|
|
|
|
|
|
|
<RptParameterReportPar>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Expandir | ||
---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Aplicação de Teste:
Para utilizar a aplicação de testes é necessário possuir o Microsoft Visual Studio.
- Com o Visual Studio aberto: Clique nas opções FILE -> Open -> Web Site. Conforme exemplo abaixo:
Image Added
- Em seguida selecione a pasta descompactada e clique em "Open" conforme abaixo:
Image Added
</GetGeneratedReportStatusResponse>
</s:Body>
</s:Envelope>
Informações | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||
|
Informações | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||
|