- GenerateReportAsynchronous:
Funciona da mesma forma que o GenerateReport, porém não aguarda a geração do relatório e retorna um identificador único a ser utilizado para consultar o status da geração. Request: <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tot="http://www.totvs.com/"> <soapenv:Header/> <soapenv:Body> <tot:GenerateReportAsynchronous> <!--Optional:--> <tot:codColigada>1</tot:codColigada> <!--Optional:--> <tot:id>306</tot:id> <!--Optional:--> <tot:filters><![CDATA[<?xml version="1.0" encoding="utf-16"?> <ArrayOfRptFilterReportPar xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.totvs.com.br/RM/"> <RptFilterReportPar> <BandName>RptReport</BandName> <FiltersByTable> <RptFilterByTablePar> <Filter>PFUNC.CHAPA >= '00001' AND PFUNC.CHAPA <= '00010' </Filter> <TableName>PFUNC</TableName> </RptFilterByTablePar> </FiltersByTable> <MainFilter>true</MainFilter> <Value>(PFUNC.CHAPA >= '00001' AND PFUNC.CHAPA <= '00010' )</Value> </RptFilterReportPar> </ArrayOfRptFilterReportPar>]]></tot:filters> <!--Optional:--> <tot:parameters><![CDATA[<?xml version="1.0" encoding="utf-16"?> <ArrayOfRptParameterReportPar xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.totvs.com.br/RM/"> <RptParameterReportPar> <Description>PARAM_COLIGADA</Description> <ParamName>PARAM_COLIGADA</ParamName> <Type xmlns:d3p1="http://schemas.datacontract.org/2004/07/System" xmlns:d3p2="-mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089-System-System.RuntimeType" i:type="d3p2:RuntimeType" xmlns:d3p3="-mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089-System-System.UnitySerializationHolder" z:FactoryType="d3p3:UnitySerializationHolder" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/"> <Data xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string" xmlns="">System.String</Data> <UnityType xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:int" xmlns="">4</UnityType> <AssemblyName xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string" xmlns="">mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</AssemblyName> </Type> <Value xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:string">1</Value> <Visible>true</Visible> </RptParameterReportPar> <RptParameterReportPar> <Description>PARAM_TESTE</Description> <ParamName>PARAM_TESTE</ParamName> <Type xmlns:d3p1="http://schemas.datacontract.org/2004/07/System" xmlns:d3p2="-mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089-System-System.RuntimeType" i:type="d3p2:RuntimeType" xmlns:d3p3="-mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089-System-System.UnitySerializationHolder" z:FactoryType="d3p3:UnitySerializationHolder" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/"> <Data xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string" xmlns="">System.String</Data> <UnityType xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:int" xmlns="">4</UnityType> <AssemblyName xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string" xmlns="">mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</AssemblyName> </Type> <Value xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:string">1</Value> <Visible>true</Visible> </RptParameterReportPar> </ArrayOfRptParameterReportPar>]]></tot:parameters> <!--Optional:--> <tot:fileName>Report.pdf</tot:fileName> </tot:GenerateReportAsynchronous> </soapenv:Body> </soapenv:Envelope> Response: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"> <s:Body> <GenerateReportAsynchronousResponse xmlns="http://www.totvs.com/"> <GenerateReportAsynchronousResult>ff3fe362-2433-42a1-bda6-44e6d811e578</GenerateReportAsynchronousResult> </GenerateReportAsynchronousResponse> </s:Body> </s:Envelope> |