Serviço responsável por executar processos com parâmetros XML de forma assíncrona, isto é, o serviço submeterá a execução do processo e devolverá um id de job que pode ser passado como parâmetro para o serviço GetProcessStatus para consultar o andamento do processo. Os passos a serem seguidos são idênticos ao serviço ExecuteWithXmlParams, porem o retorno do método é diferente.
Deck of Cards |
---|
| Os parâmetros solicitado pelo ExecuteWithXmlParamsAsync são: ProcessServerName tipo String strXmlParams tipo String
Expandir |
---|
| Para pegar o parâmetro XML é necessário executar o processo através da biblioteca. Deck of Cards |
---|
| Card |
---|
| Deck of Cards |
---|
| Card |
---|
| Bloco de código |
---|
| <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tot="http://www.totvs.com/">
<soapenv:Header/>
<soapenv:Body>
<tot:ExecuteWithXmlParams>ExecuteWithXmlParamsAsync>
<!--Optional:-->
<tot:ProcessServerName>GlbProcCopyConsSQL<ProcessServerName>GlbCopyPermisUsrProc</tot:ProcessServerName>
<!--Optional:-->
<tot:strXmlParams><strXmlParams><![CDATA[<?xml version=""1.0"" encoding=""utf-16"?>
<GlbParamsProcCopyColig"?>
<GlbParamsProcCopyPermisUsr z:Id="i1" xmlns="http://www.totvs.com.br/RM/" xmlns:i=""http://www.w3.org/2001/XMLSchema-instance" z:Id="i1"" xmlns:z=""http://schemas.microsoft.com/2003/10/Serialization/"">
<ActionModule xmlns=""http://www.totvs.com.br/RM/">">G</ActionModule>
<CanParallelize<ActionName xmlns=""http://www.totvs.com/">true</CanParallelize>">GlbActionProcCopyPermisUsr</ActionName>
<Context<CodUsuario xmlns:d2p1=""http://www.totvs.com.br/RM/"">mestre</CodUsuario>
<Context z:Id="i2""i2" xmlns=""http://www.totvs.com/">" xmlns:a="http://www.totvs.com.br/RM/">
<d2p1<a:_params xmlns:d3p1b=""http://schemas.microsoft.com/2003/10/Serialization/Arrays">">
<d3p1:KeyValueOfanyTypeanyType><b:KeyValueOfanyTypeanyType>
<d3p1<b:Key i:type="c:string" xmlns:d5p1c=""http://www.w3.org/2001/XMLSchema" i:type="d5p1:string">$CODUNIDADEBIB</d3p1:Key>
">$EXERCICIOFISCAL</b:Key>
<d3p1:Value<b:Value i:type="c:int" xmlns:d5p1c=""http://www.w3.org/2001/XMLSchema" i:type="d5p1:int">1</d3p1:Value>">22</b:Value>
<</d3p1:KeyValueOfanyTypeanyType>
b:KeyValueOfanyTypeanyType>
<d3p1:KeyValueOfanyTypeanyType><b:KeyValueOfanyTypeanyType>
<d3p1<b:Key i:type="c:string" xmlns:d5p1c=""http://www.w3.org/2001/XMLSchema" i:type="d5p1:string">$CHAPAFUNCIONARIO</d3p1:Key>">$CODLOCPRT</b:Key>
<d3p1<b:Value i:type="c:int" xmlns:d5p1c=""http://www.w3.org/2001/XMLSchema" i:type="d5p1:string">00001</d3p1:Value>">12</b:Value>
<</d3p1:KeyValueOfanyTypeanyType>b:KeyValueOfanyTypeanyType>
<d3p1:KeyValueOfanyTypeanyType><b:KeyValueOfanyTypeanyType>
<d3p1<b:Key i:type="c:string" xmlns:d5p1c=""http://www.w3.org/2001/XMLSchema" i:type="d5p1:string">$EXERCICIOFISCAL</d3p1:Key>
">$CODTIPOCURSO</b:Key>
<d3p1:Value<b:Value i:type="c:int" xmlns:d5p1c=""http://www.w3.org/2001/XMLSchema" i:type="d5p1:int">2</d3p1:Value>">1</b:Value>
<</d3p1:KeyValueOfanyTypeanyType>
b:KeyValueOfanyTypeanyType>
<d3p1:KeyValueOfanyTypeanyType><b:KeyValueOfanyTypeanyType>
<d3p1<b:Key i:type="c:string" xmlns:d5p1c=""http://www.w3.org/2001/XMLSchema" i:type="d5p1:string">$CODFILIAL</d3p1:Key>">$EDUTIPOUSR</b:Key>
<d3p1<b:Value i:type="c:string" xmlns:d5p1c=""http://www.w3.org/2001/XMLSchema" i:type="d5p1:int">1</d3p1:Value>">A</b:Value>
<</d3p1:KeyValueOfanyTypeanyType>b:KeyValueOfanyTypeanyType>
<d3p1:KeyValueOfanyTypeanyType><b:KeyValueOfanyTypeanyType>
<d3p1<b:Key i:type="c:string" xmlns:d5p1c=""http://www.w3.org/2001/XMLSchema" i:type="d5p1:string">$RHTIPOUSR</d3p1:Key>
">$CODUNIDADEBIB</b:Key>
<d3p1:Value<b:Value i:type="c:int" xmlns:d5p1c=""http://www.w3.org/2001/XMLSchema" i:type="d5p1:string">01</d3p1:Value>">5</b:Value>
<</d3p1:KeyValueOfanyTypeanyType>
b:KeyValueOfanyTypeanyType>
<d3p1:KeyValueOfanyTypeanyType><b:KeyValueOfanyTypeanyType>
<d3p1<b:Key i:type="c:string" xmlns:d5p1c=""http://www.w3.org/2001/XMLSchema" i:type="d5p1:string">$CODCOLIGADA</d3p1:Key>">$CODCOLIGADA</b:Key>
<d3p1<b:Value i:type="c:int" xmlns:d5p1c=""http://www.w3.org/2001/XMLSchema" i:type="d5p1:int">1</d3p1:Value>">1</b:Value>
<</d3p1:KeyValueOfanyTypeanyType>b:KeyValueOfanyTypeanyType>
<d3p1:KeyValueOfanyTypeanyType><b:KeyValueOfanyTypeanyType>
<d3p1<b:Key i:type="c:string" xmlns:d5p1c=""http://www.w3.org/2001/XMLSchema" i:type="d5p1:string">$EDUTIPOUSR</d3p1:Key>
">$RHTIPOUSR</b:Key>
<d3p1:Value<b:Value i:type="c:string" xmlns:d5p1c=""http://www.w3.org/2001/XMLSchema" i:type="d5p1:string">F</d3p1:Value>">01</b:Value>
<</d3p1:KeyValueOfanyTypeanyType>
b:KeyValueOfanyTypeanyType>
<d3p1:KeyValueOfanyTypeanyType><b:KeyValueOfanyTypeanyType>
<d3p1<b:Key i:type="c:string" xmlns:d5p1c=""http://www.w3.org/2001/XMLSchema" i:type="d5p1:string">$CODLOCPRT</d3p1:Key>">$CODIGOEXTERNO</b:Key>
<d3p1<b:Value i:type="c:string" xmlns:d5p1c=""http://www.w3.org/2001/XMLSchema" i:type="d5p1:int">5</d3p1:Value>">-1</b:Value>
<</d3p1:KeyValueOfanyTypeanyType>b:KeyValueOfanyTypeanyType>
<d3p1:KeyValueOfanyTypeanyType><b:KeyValueOfanyTypeanyType>
<d3p1<b:Key i:type="c:string" xmlns:d5p1c=""http://www.w3.org/2001/XMLSchema" i:type="d5p1:string">$CODUSUARIO</d3p1:Key>
">$CODSISTEMA</b:Key>
<d3p1:Value<b:Value i:type="c:string" xmlns:d5p1c=""http://www.w3.org/2001/XMLSchema" i:type="d5p1:string">mestre</d3p1:Value>">G</b:Value>
<</d3p1:KeyValueOfanyTypeanyType>
b:KeyValueOfanyTypeanyType>
<d3p1:KeyValueOfanyTypeanyType><b:KeyValueOfanyTypeanyType>
<d3p1<b:Key i:type="c:string" xmlns:d5p1c=""http://www.w3.org/2001/XMLSchema" i:type="d5p1:string">$CODUSUARIOSERVICO</d3p1:Key>">$CODUSUARIOSERVICO</b:Key>
<d3p1<b:Value i:type="c:string" xmlns:d5p1c=""http://www.w3.org/2001/XMLSchema" i:type="d5p1:string"></d3p1:Value>" />
<</d3p1:KeyValueOfanyTypeanyType>b:KeyValueOfanyTypeanyType>
<d3p1:KeyValueOfanyTypeanyType><b:KeyValueOfanyTypeanyType>
<d3p1<b:Key i:type="c:string" xmlns:d5p1c=""http://www.w3.org/2001/XMLSchema" i:type="d5p1:string">$CODSISTEMA</d3p1:Key>
<d3p1:Value xmlns:d5p1="">$CODUSUARIO</b:Key>
<b:Value i:type="c:string" xmlns:c="http://www.w3.org/2001/XMLSchema" i:type="d5p1:string">G</d3p1:Value>">mestre</b:Value>
<</d3p1:KeyValueOfanyTypeanyType>b:KeyValueOfanyTypeanyType>
<d3p1:KeyValueOfanyTypeanyType><b:KeyValueOfanyTypeanyType>
<d3p1<b:Key i:type="c:string" xmlns:d5p1c=""http://www.w3.org/2001/XMLSchema" i:type="d5p1:string">$CODTIPOCURSO</d3p1:Key>">$IDPRJ</b:Key>
<d3p1<b:Value i:type="c:int" xmlns:d5p1c=""http://www.w3.org/2001/XMLSchema" i:type="d5p1:int">2</d3p1:Value>">2</b:Value>
<</d3p1:KeyValueOfanyTypeanyType>b:KeyValueOfanyTypeanyType>
<d3p1:KeyValueOfanyTypeanyType><b:KeyValueOfanyTypeanyType>
<d3p1<b:Key i:type="c:string" xmlns:d5p1c=""http://www.w3.org/2001/XMLSchema" i:type="d5p1:string">$CODIGOEXTERNO</d3p1:Key>
">$CHAPAFUNCIONARIO</b:Key>
<d3p1:Value<b:Value i:type="c:string" xmlns:d5p1c=""http://www.w3.org/2001/XMLSchema" i:type="d5p1:string">-1</d3p1:Value>">00001</b:Value>
<</d3p1:KeyValueOfanyTypeanyType>
b:KeyValueOfanyTypeanyType>
<d3p1:KeyValueOfanyTypeanyType><b:KeyValueOfanyTypeanyType>
<d3p1<b:Key i:type="c:string" xmlns:d5p1c=""http://www.w3.org/2001/XMLSchema" i:type="d5p1:string">$IDPRJ</d3p1:Key>">$CODFILIAL</b:Key>
<d3p1<b:Value i:type="c:int" xmlns:d5p1c=""http://www.w3.org/2001/XMLSchema" i:type="d5p1:int">2</d3p1:Value>">1</b:Value>
<</d3p1:KeyValueOfanyTypeanyType>b:KeyValueOfanyTypeanyType>
<</d2p1a:_params>params>
<d2p1:Environment>DotNet</d2p1:Environment><a:Environment>DotNet</a:Environment>
</Context></Context>
<Initialized<PrimaryKeyList xmlns=""http://www.totvs.com/">true</Initialized>
<IsolateProcess xmlns="" xmlns:a="http://wwwschemas.totvsmicrosoft.com/">false</IsolateProcess>
<MaximumQuantityOfPrimaryKeysPerProcess xmlns="http://www.totvs.com/">1000</MaximumQuantityOfPrimaryKeysPerProcess>
<MinimumQuantityOfPrimaryKeysPerProcess xmlns="/2003/10/Serialization/Arrays">
<a:ArrayOfanyType>
<a:anyType i:type="b:string" xmlns:b="http://www.w3.org/2001/XMLSchema">1Teste</a:anyType>
</a:ArrayOfanyType>
</PrimaryKeyList>
<PrimaryKeyNames xmlns="http://www.totvs.com/">1</MinimumQuantityOfPrimaryKeysPerProcess>
<PrimaryKeyList" xmlns:d2p1a=""http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://www.totvs.com/">
<d2p1:ArrayOfanyType>">
<a:string>CODUSUARIO</a:string>
</PrimaryKeyNames>
<CodSistema>S</CodSistema>
<CopyToAllApplications>true</CopyToAllApplications>
<NewUser>
<Email <d2p1:anyType xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:short">1</d2p1:anyType>i:nil="true" />
<Nome i:nil="true" />
<Senha i:nil="true" />
<Usuario <d2p1:anyType xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string">G</d2p1:anyType>
<d2p1:anyType xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string">Exemplo</d2p1:anyType>
</d2p1:ArrayOfanyType>
</PrimaryKeyList>
<PrimaryKeyNames xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://www.totvs.com/">
<d2p1:string>CODCOLIGADA</d2p1:string>
<d2p1:string>APLICACAO</d2p1:string>
<d2p1:string>CODSENTENCA</d2p1:string>
</PrimaryKeyNames>
<QuantityOfSplits xmlns="http://www.totvs.com/">0</QuantityOfSplits>
<ShouldParallelize xmlns="http://www.totvs.com/">false</ShouldParallelize>
<IsReplaceExistingRecordsVisible>true</IsReplaceExistingRecordsVisible>
<ReplaceExistingRecords>false</ReplaceExistingRecords>
<TargetColigadas xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:int>6</d2p1:int>
</TargetColigadas>
</GlbParamsProcCopyColig><i:nil="true" />
<UsuariodeRede i:nil="true" />
<codAcesso i:nil="true" />
</NewUser>
<RemoveOldPermissions>false</RemoveOldPermissions>
<SourceUsuario>mestre</SourceUsuario>
</GlbParamsProcCopyPermisUsr>]]></tot:strXmlParams>
</tot:ExecuteWithXmlParams>ExecuteWithXmlParamsAsync>
</soapenv:Body>
</soapenv:Envelope> |
|
Card |
---|
| Bloco de código |
---|
| <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>
<ExecuteWithXmlParamsAsyncResponse xmlns="http://www.totvs.com/">
<ExecuteWithXmlParamsAsyncResult><![CDATA[<?xml version="1.0" encoding="utf-16"?>
<ProcessID>
<JobID>104863</JobID>
<ExecID>1</ExecID>
</ProcessID>]]></ExecuteWithXmlParamsAsyncResult>
</ExecuteWithXmlParamsAsyncResponse>
</s:Body>
</s:Envelope> |
|
|
|
|
|
|
|