Versões comparadas

Chave

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

Visão Geral do Programa

O objetivo deste ProcessServer é possibilitar a geração de movimento por competência via WebService para os contratos . Os movimentos gerados poderão ser consultados no módulo TOTVS Gestão de Estoque, Compras e Faturamento.

...

Este é o método publicado no WebService (wsProcess) para que seja consumido o serviço de geração do movimento por competência (EduNFECompetenciaSliceableData -> a partir da versão 12.1.2406)

Até a versão 12.1.2402 este é o método publicado no WebService (wsProcess) para que seja consumido o serviço de geração do movimento por competência (EduNFECompetenciaData)

Utilização do WebService

Para realizar  a geração de movimento por competência , deve ser utilizado a operação de ExecuteWithXmlParams.

...

Dica
titleAcessar XML no RM

Dica:

Para conhecer melhor o XML e suas informações é possível acessar no RM o XML de processos que foram executados.

Por exemplo, podemos executar o processo de geração de movimento em um base de dados de homologação e observar no XML gerado as informações preenchidas.

Para isso acesse o menu “Executar” digite “XML” e clique em “XML de parâmetros de JOB”  na tela apresentada crie um filtro para que seja carregados os JOB do processo em questão.


Exemplo do XML completo pronto para ser consumido via o WebService responsável em executar o processo de geração de movimento por competência.

Bloco de código
languagexml
titleGeração do movimento
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tot="http://www.totvs.com/">
   <soapenv:Header/>
   <soapenv:Body>
      <tot:ExecuteWithXmlParams>
         <!--Optional:-->
         <tot:ProcessServerName>EduNFEData<ProcessServerName>EduNFECompetenciaSliceableData</tot:ProcessServerName>
         <!--Optional:-->
         <tot:strXmlParams><![CDATA[<?xml version="1.0" encoding="utf-16"?>
<EduNFEParamsProc z:Id="i1" xmlns="http://www.totvs.com.br/RM/" xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/">
  <ActionModule xmlns="http://www.totvs.com/">S</ActionModule>
  <ActionName xmlns="http://www.totvs.com/">EduNFEAction<>EduNFECompetenciaAction</ActionName>
  <CanParallelize xmlns="http://www.totvs.com/">true</CanParallelize>
  <CanSendMail xmlns="http://www.totvs.com/">false</CanSendMail>
  <CanWaitSchedule xmlns="http://www.totvs.com/">false</CanWaitSchedule>
  <CodUsuario xmlns="http://www.totvs.com/">mestre</CodUsuario>
  <ConnectionId i:nil="true" xmlns="http://www.totvs.com/" />
  <ConnectionString i:nil="true" xmlns="http://www.totvs.com/" />
  <Context z:Id="i2" xmlns="http://www.totvs.com/" xmlns:a="http://www.totvs.com.br/RM/">
    <a:_params xmlns:b="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <b:KeyValueOfanyTypeanyType>
        <b:Key i:type="c:string" xmlns:c="http://www.w3.org/2001/XMLSchema">$EXERCICIOFISCAL</b:Key>
        <b:Value i:type="c:int" xmlns:c="http://www.w3.org/2001/XMLSchema">22</b:Value>
      </b:KeyValueOfanyTypeanyType>
      <b:KeyValueOfanyTypeanyType>
        <b:Key i:type="c:string" xmlns:c="http://www.w3.org/2001/XMLSchema">$CODLOCPRT</b:Key>
        <b:Value i:type="c:int" xmlns:c="http://www.w3.org/2001/XMLSchema">12<>-1</b:Value>
      </b:KeyValueOfanyTypeanyType>
      <b:KeyValueOfanyTypeanyType>
        <b:Key i:type="c:string" xmlns:c="http://www.w3.org/2001/XMLSchema">$CODTIPOCURSO</b:Key>
        <b:Value i:type="c:int" xmlns:c="http://www.w3.org/2001/XMLSchema">1</b:Value>
      </b:KeyValueOfanyTypeanyType>
      <b:KeyValueOfanyTypeanyType>
        <b:Key i:type="c:string" xmlns:c="http://www.w3.org/2001/XMLSchema">$EDUTIPOUSR</b:Key>
        <b:Value i:type="c:string" xmlns:c="http://www.w3.org/2001/XMLSchema">A<>-1</b:Value>
      </b:KeyValueOfanyTypeanyType>
      <b:KeyValueOfanyTypeanyType>
        <b:Key i:type="c:string" xmlns:c="http://www.w3.org/2001/XMLSchema">$CODUNIDADEBIB</b:Key>
        <b:Value i:type="c:int" xmlns:c="http://www.w3.org/2001/XMLSchema">5<>-1</b:Value>
      </b:KeyValueOfanyTypeanyType>
      <b:KeyValueOfanyTypeanyType>
        <b:Key i:type="c:string" xmlns:c="http://www.w3.org/2001/XMLSchema">$CODCOLIGADA</b:Key>
        <b:Value i:type="c:int" xmlns:c="http://www.w3.org/2001/XMLSchema">1</b:Value>
      </b:KeyValueOfanyTypeanyType>
      <b:KeyValueOfanyTypeanyType>
        <b:Key i:type="c:string" xmlns:c="http://www.w3.org/2001/XMLSchema">$RHTIPOUSR</b:Key>
        <b:Value i:type="c:string" xmlns:c="http://www.w3.org/2001/XMLSchema">01<>-1</b:Value>
      </b:KeyValueOfanyTypeanyType>
      <b:KeyValueOfanyTypeanyType>
        <b:Key i:type="c:string" xmlns:c="http://www.w3.org/2001/XMLSchema">$CODIGOEXTERNO</b:Key>
        <b:Value i:type="c:string" xmlns:c="http://www.w3.org/2001/XMLSchema">-1</b:Value>
      </b:KeyValueOfanyTypeanyType>
      <b:KeyValueOfanyTypeanyType>
        <b:Key i:type="c:string" xmlns:c="http://www.w3.org/2001/XMLSchema">$CODSISTEMA</b:Key>
        <b:Value i:type="c:string" xmlns:c="http://www.w3.org/2001/XMLSchema">S</b:Value>
      </b:KeyValueOfanyTypeanyType>
      <b:KeyValueOfanyTypeanyType>
        <b:Key i:type="c:string" xmlns:c="http://www.w3.org/2001/XMLSchema">$CODUSUARIOSERVICO</b:Key>
        <b:Value i:type="c:string" xmlns:c="http://www.w3.org/2001/XMLSchema" />
      </b:KeyValueOfanyTypeanyType>
      <b:KeyValueOfanyTypeanyType>
        <b:Key i:type="c:string" xmlns:c="http://www.w3.org/2001/XMLSchema">$CODUSUARIO</b:Key>
        <b:Value i:type="c:string" xmlns:c="http://www.w3.org/2001/XMLSchema">mestre</b:Value>
      </b:KeyValueOfanyTypeanyType>
      <b:KeyValueOfanyTypeanyType>
        <b:Key i:type="c:string" xmlns:c="http://www.w3.org/2001/XMLSchema">$IDPRJ</b:Key>
        <b:Value i:type="c:int" xmlns:c="http://www.w3.org/2001/XMLSchema">2<>-1</b:Value>
      </b:KeyValueOfanyTypeanyType>
      <b:KeyValueOfanyTypeanyType>
        <b:Key i:type="c:string" xmlns:c="http://www.w3.org/2001/XMLSchema">$CHAPAFUNCIONARIO</b:Key>
        <b:Value i:type="c:string" xmlns:c="http://www.w3.org/2001/XMLSchema">00001<>-1</b:Value>
      </b:KeyValueOfanyTypeanyType>
      <b:KeyValueOfanyTypeanyType>
        <b:Key i:type="c:string" xmlns:c="http://www.w3.org/2001/XMLSchema">$CODFILIAL</b:Key>
        <b:Value i:type="c:int" xmlns:c="http://www.w3.org/2001/XMLSchema">1</b:Value>
      </b:KeyValueOfanyTypeanyType>
    </a:_params>
    <a:Environment>DotNet</a:Environment>
  </Context>
  <CustomData i:nil="true" xmlns="http://www.totvs.com/" />
  <DisableIsolateProcess xmlns="http://www.totvs.com/">false</DisableIsolateProcess>
  <DriverType i:nil="true" xmlns="http://www.totvs.com/" />
  <ExecutionId xmlns="http://www.totvs.com/">9fc5097e>2a136ce1-1b7329ad-450e455a-a39a9726-10bebbd5cccd<90aae610440b</ExecutionId>
  <FailureMessage xmlns="http://www.totvs.com/">Falha na execução do processo</FailureMessage>
  <FriendlyLogs i:nil="true" xmlns="http://www.totvs.com/" />
  <HideProgressDialog xmlns="http://www.totvs.com/">false</HideProgressDialog>
  <HostName xmlns="http://www.totvs.com/">BHN050102875<>BHN050104412</HostName>
  <Initialized xmlns="http://www.totvs.com/">true</Initialized>
  <Ip xmlns="http://www.totvs.com/">10.31.86.119<129</Ip>
  <IsolateProcess xmlns="http://www.totvs.com/">false</IsolateProcess>
  <JobID xmlns="http://www.totvs.com/">
    <Children />
    <ExecID>1</ExecID>
    <ID>123023<<ID>108837</ID>
    <IsPriorityJob>false</IsPriorityJob>
  </JobID>
  <JobServerHostName xmlns="http://www.totvs.com/">BHN050102875<>BHN050104412</JobServerHostName>
  <MasterActionName i:nil="true" xmlns="http://www.totvs.com/" >EduContratoAction</>MasterActionName>
  <MaximumQuantityOfPrimaryKeysPerProcess xmlns="http://www.totvs.com/">1000</MaximumQuantityOfPrimaryKeysPerProcess>
  <MinimumQuantityOfPrimaryKeysPerProcess xmlns="http://www.totvs.com/">1</MinimumQuantityOfPrimaryKeysPerProcess>
  <NetworkUser i:nil="true" xmlns="http://www.totvs.com/" >wesley.costa</>NetworkUser>
  <NotifyEmail xmlns="http://www.totvs.com/">false</NotifyEmail>
  <NotifyEmailList i:nil="true" xmlns="http://www.totvs.com/" xmlns:a="http://schemas.microsoft.com/2003/10/Serialization/Arrays" />
  <NotifyFluig xmlns="http://www.totvs.com/">false</NotifyFluig>
  <OnlineMode xmlns="http://www.totvs.com/">false</OnlineMode>
  <PrimaryKeyList xmlns="http://www.totvs.com/" xmlns:a="http://schemas.microsoft.com/2003/10/Serialization/Arrays" />
  <PrimaryKeyNames>
    <a:ArrayOfanyType>
      <a:anyType i:niltype="trueb:short" xmlns:b="http://www.totvsw3.comorg/2001/XMLSchema" xmlns:>1</a:anyType>
      <a:anyType i:type="b:string" xmlns:b="http://www.w3.org/2001/XMLSchema">PACMEN-000491</a:anyType>
      <a:anyType i:type="b:int" xmlns:b="http://www.w3.org/2001/XMLSchema">72</a:anyType>
      <a:anyType i:type="b:string" xmlns:b="http://www.w3.org/2001/XMLSchema">1128</a:anyType>
    </a:ArrayOfanyType>
  </PrimaryKeyList>
  <PrimaryKeyNames xmlns="http://www.totvs.com/" xmlns:a="http://schemas.microsoft.com/2003/10/Serialization/Arrays" />/Arrays">
    <a:string>CODCOLIGADA</a:string>
    <a:string>RA</a:string>
    <a:string>IDPERLET</a:string>
    <a:string>CODCONTRATO</a:string>
  </PrimaryKeyNames>
  <PrimaryKeyTableName i:nil="true" xmlns="http://www.totvs.com/" >SCONTRATO</>PrimaryKeyTableName>
  <ProcessName xmlns="http://www.totvs.com/">Geração>Gerar Movimento depor movimentos<competência</ProcessName>
  <QuantityOfSplits xmlns="http://www.totvs.com/">0<>1</QuantityOfSplits>
  <SaveLogInDatabase xmlns="http://www.totvs.com/">true</SaveLogInDatabase>
  <SaveParamsExecution xmlns="http://www.totvs.com/">false</SaveParamsExecution>
  <ScheduleDateTime xmlns="http://www.totvs.com/">2019>2024-0104-22T1103T11:0939:1112.16815060477894-0203:00</ScheduleDateTime>
  <Scheduler xmlns="http://www.totvs.com/">JobMonitor</Scheduler>
  <SendMail xmlns="http://www.totvs.com/">false</SendMail>
  <ServerName xmlns="http://www.totvs.com/">EduNFEData<>EduNFECompetenciaSliceableData</ServerName>
  <ServiceInterface i:type="b:RuntimeType" z:FactoryType="c:UnitySerializationHolder" xmlns="http://www.totvs.com/" xmlns:a="http://schemas.datacontract.org/2004/07/System" xmlns:b="-mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089-System-System.RuntimeType" xmlns:c="-mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089-System-System.UnitySerializationHolder">
    <Data i:type="d:string" xmlns="" xmlns:d="http://www.w3.org/2001/XMLSchema">RM.Edu.Interfaces.Financeiro.IEduNFE<IEduNFECompetenciaData</Data>
    <UnityType i:type="d:int" xmlns="" xmlns:d="http://www.w3.org/2001/XMLSchema">4</UnityType>
    <AssemblyName i:type="d:string" xmlns="" xmlns:d="http://www.w3.org/2001/XMLSchema">RM.Edu.Interfaces.Intf, Version=12.1.192406.4051, Culture=neutral, PublicKeyToken=null</AssemblyName>
  </ServiceInterface>/AssemblyName>
  </ServiceInterface>
  <ShouldParallelize xmlns="http://www.totvs.com/">false</ShouldParallelize>
  <ShouldParallelize<ShowReExecuteButton xmlns="http://www.totvs.com/">false<>true</ShouldParallelize>ShowReExecuteButton>
  <StatusMessage i:nil="true" xmlns="http://www.totvs.com/" />
  <SuccessMessage xmlns="http://www.totvs.com/">Processo executado com sucesso</SuccessMessage>
  com sucesso</SuccessMessage>
  <SyncExecution<SyncExecution xmlns="http://www.totvs.com/">false</SyncExecution>
  <UseJobMonitor xmlns="http://www.totvs.com/">true</UseJobMonitor>
  <UserName xmlns="http://www.totvs.com/">mestre</UserName>
  <WaitSchedule xmlns="http://www.totvs.com/">false</SyncExecution>WaitSchedule>
  <UseJobMonitor<EnableJobErrorProgressbar xmlns="http://www.totvs.com/">true<>false</UseJobMonitor>EnableJobErrorProgressbar>
  <UserName<EnableTracing xmlns="http://www.totvs.com/">mestre<>false</UserName>EnableTracing>
  <WaitSchedule<LocalOnlyExecutor i:nil="true" xmlns="http://www.totvs.com/">false< /WaitSchedule>>
  <Boletos<RMSJobIds i:nil="true" xmlns:a="http://www.totvs.com/" />
  <FiltroBoleto<SlicesCount xmlns:a="http://schemaswww.microsofttotvs.com/2003/10/Serialization/Arrays">">0</SlicesCount>
  <CodColigada>1</CodColigada>
  <CodFilial>1</CodFilial>
  <CodTipoCurso>1</CodTipoCurso>
  <a:anyType i:type="b:string"<Boletos xmlns:ba="http://www.w3totvs.org/2001com/XMLSchema">FLANBOLETO.IDBOLETO = :F1
</a:anyType>/>
  <FiltroBoleto  <a:anyType i:typenil="b:inttrue" xmlns:ba="http://wwwschemas.w3.org/2001/XMLSchema">12043</a:anyType>microsoft.com/2003/10/Serialization/Arrays" />
  <<GerarMovimentoValorZero>true</FiltroBoleto>GerarMovimentoValorZero>
  <MesAno>0001<MesAno>2022-01-01T0031T00:00:00</MesAno>
  <MovimentoNFEParams z:Id="i3">
    <ActionModule i:nil="true" xmlns="http://www.totvs.com/" />
    <ActionName i:nil="true" xmlns="http://www.totvs.com/" />
    <CanParallelize xmlns="http://www.totvs.com/">false</CanParallelize>
    <CanSendMail xmlns="http://www.totvs.com/">false</CanSendMail>
    <CanWaitSchedule xmlns="http://www.totvs.com/">false</CanWaitSchedule>
    <CodUsuario i:nil="true" xmlns="http://www.totvs.com/" />
    <ConnectionId i:nil="true" xmlns="http://www.totvs.com/" />
    <ConnectionString i:nil="true" xmlns="http://www.totvs.com/" />
    <Context i:nil="true" xmlns="http://www.totvs.com/" xmlns:a="http://www.totvs.com.br/RM/" />
    <CustomData i:nil="true" xmlns="http://www.totvs.com/" />
    <DisableIsolateProcess xmlns="http://www.totvs.com/">false</DisableIsolateProcess>
    <DriverType i:nil="true" xmlns="http://www.totvs.com/" />
    <ExecutionId xmlns="http://www.totvs.com/">598a25e7>b8565991-6fdd276a-4f474c93-adc093b8-fdc9a0aebbcc<2c96237d269c</ExecutionId>
    <FailureMessage xmlns="http://www.totvs.com/">Falha na execução do processo</FailureMessage>
    <FriendlyLogs i:nil="true" xmlns="http://www.totvs.com/" />
    <HideProgressDialog xmlns="http://www.totvs.com/">false</HideProgressDialog>
    <HostName i:nil="true" xmlns="http://www.totvs.com/" />
    <Initialized xmlns="http://www.totvs.com/">false</Initialized>
    <Ip i:nil="true" xmlns="http://www.totvs.com/" />
    <IsolateProcess xmlns="http://www.totvs.com/">false</IsolateProcess>
    <JobID xmlns="http://www.totvs.com/">
      <Children />
      <ExecID>-1</ExecID>
      <ID>-1</ID>
      <IsPriorityJob>false</IsPriorityJob>
    </JobID>
    <JobServerHostName i:nil="true" xmlns="http://www.totvs.com/" />
    <MasterActionName i:nil="true" xmlns="http://www.totvs.com/" />
    <MaximumQuantityOfPrimaryKeysPerProcess xmlns="http://www.totvs.com/">1000</MaximumQuantityOfPrimaryKeysPerProcess>
    <MinimumQuantityOfPrimaryKeysPerProcess xmlns="http://www.totvs.com/">1</MinimumQuantityOfPrimaryKeysPerProcess>
    <NetworkUser i:nil="true" xmlns="http://www.totvs.com/" />
    <NotifyEmail xmlns="http://www.totvs.com/">false</NotifyEmail>
    <NotifyEmailList i:nil="true" xmlns="http://www.totvs.com/" xmlns:a="http://schemas.microsoft.com/2003/10/Serialization/Arrays" />
    <NotifyFluig xmlns="http://www.totvs.com/">false</NotifyFluig>
    <OnlineMode xmlns="http://www.totvs.com/">false</OnlineMode>
    <PrimaryKeyList xmlns="http://www.totvs.com/" xmlns:a="http://schemas.microsoft.com/2003/10/Serialization/Arrays" />
    <PrimaryKeyNames i:nil="true" xmlns="http://www.totvs.com/" xmlns:a="http://schemas.microsoft.com/2003/10/Serialization/Arrays" />
    <PrimaryKeyTableName i:nil="true" xmlns="http://www.totvs.com/" />
    <ProcessName i:nil="true" xmlns="http://www.totvs.com/" />
    <QuantityOfSplits xmlns="http://www.totvs.com/">0</QuantityOfSplits>
    <SaveLogInDatabase xmlns="http://www.totvs.com/">true</SaveLogInDatabase>
    <SaveParamsExecution xmlns="http://www.totvs.com/">false</SaveParamsExecution>
    <ScheduleDateTime xmlns="http://www.totvs.com/">2019>2024-0104-22T1103T11:0939:1112.16815060477894-0203:00</ScheduleDateTime>
    <Scheduler xmlns="http://www.totvs.com/">JobMonitor</Scheduler>
    <SendMail xmlns="http://www.totvs.com/">false</SendMail>
    <ServerName i:nil="true" xmlns="http://www.totvs.com/" />
    <ServiceInterface i:nil="true" xmlns="http://www.totvs.com/" xmlns:a="http://schemas.datacontract.org/2004/07/System" />
    <ShouldParallelize xmlns="http://www.totvs.com/">false</ShouldParallelize>
    <ShowReExecuteButton xmlns="http://www.totvs.com/">true</ShowReExecuteButton>
    <StatusMessage i:nil="true" xmlns="http://www.totvs.com/" />
    <SuccessMessage xmlns="http://www.totvs.com/">Processo executado com sucesso</SuccessMessage>
    <SyncExecution xmlns="http://www.totvs.com/">false</SyncExecution>
    <UseJobMonitor xmlns="http://www.totvs.com/">true</UseJobMonitor>
    <UserName i:nil="true" xmlns="http://www.totvs.com/" />
    <WaitSchedule xmlns="http://www.totvs.com/">false</WaitSchedule>
    <CodColigada>1</CodColigada>
    <CodFilial>1</CodFilial>
    <CodServico i:nil="true" />
    <CodSistemaLogado>S</CodSistemaLogado>
    <CodTMv>2.2.10<62</CodTMv>
    <CodTipoCurso>1</CodTipoCurso>
    <CodUsuarioLogado>mestre</CodUsuarioLogado>
    <DataComp i:nil="true" />
    <DataEmissaoFinal>2018<DataEmissaoFinal>0001-1201-31T0001T00:00:00</DataEmissaoFinal>
    <DataEmissaoInicial>2018<DataEmissaoInicial>0001-01-01T00:00:00</DataEmissaoInicial>
    <DataVencFinal i:nil="true" />
    <DataVencInicial i:nil="true" />
    <DesconsideraBolsaCredito>false</DesconsideraBolsaCredito>
    <DiaFixo i:nil="true" />
    <Filtro i:nil="true" />
    <LogEventoAtivado>false</LogEventoAtivado>
    <OrigemDataEmissao>DataEmissaoLan</OrigemDataEmissao>
    <PermiteMovValorLiquidoZero>false</PermiteMovValorLiquidoZero>
    <PermiteRegerarMov>true<<PermiteRegerarMov>false</PermiteRegerarMov>
    <TipoRespFinanceiro>RespFinanceiroAluno</TipoRespFinanceiro>
    <TipoTarefaMovimento>GeracaoRegeracaoMov<<TipoTarefaMovimento>GeracaoMov</TipoTarefaMovimento>
  </MovimentoNFEParams>
  <StatusLanc>Todos<<StatusLanc>Aberto</StatusLanc>
  <TipoTarefa>GeracaoRegeracaoMov</TipoTarefa>
</EduNFEParamsProc>]]></tot:strXmlParams>
      </tot:ExecuteWithXmlParams>
   </soapenv:Body>
</soapenv:Envelope>

Exemplo do retorno da execução

O ExecuteWithXmlParamsResult = 1 indica que o processo foi executado com sucesso.

...