WS_GUARDIAN


Click here for a complete list of operations.

ConsultaPedidoDeExecucao

[INTERFACE]
Método responsável por consultar o estado de um pedido de execução de tarefa.
Quando o retorno for igual a 303639 indica que a solicitação pesquisada já saiu da fila.
Se é uma solicitação recente ela foi executada corretamente.
Se é uma solicitação antiga ela pode já ter sido removida da fila por limpeza.
Parâmetros de entrada:
- ID (Inteiro - Obrigatório) = ID da solicitação na Fila.
Retornos:
- Retorno da Função (Inteiro) = Estados que podem ser : 303606 - Pendente, 303607 - Aguardando termino da execução, 303608 - Erro na execução, 303639 - Já execudado ou não encontrado.
- Erro (Inteiro) = Código de Erro Caso Falhe. Valores possíveis: 0 = Não houve erro, Diferente de 0 = Erros variados.
- ErroMSG (String) = Descrição do erro

Test

The test form is only available for requests from the local machine.

SOAP 1.1

The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.

POST /WS_GUARDIAN_625/WS_GUARDIAN_PLUS.asmx HTTP/1.1
Host: services.toledobrasil.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://toledobrasil.com.br/WS_Guardian/ConsultaPedidoDeExecucao"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <ConsultaPedidoDeExecucao xmlns="http://toledobrasil.com.br/WS_Guardian">
      <ID>int</ID>
    </ConsultaPedidoDeExecucao>
  </soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <ConsultaPedidoDeExecucaoResponse xmlns="http://toledobrasil.com.br/WS_Guardian">
      <ConsultaPedidoDeExecucaoResult>int</ConsultaPedidoDeExecucaoResult>
      <Erro>int</Erro>
      <ErroMSG>string</ErroMSG>
    </ConsultaPedidoDeExecucaoResponse>
  </soap:Body>
</soap:Envelope>

SOAP 1.2

The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.

POST /WS_GUARDIAN_625/WS_GUARDIAN_PLUS.asmx HTTP/1.1
Host: services.toledobrasil.com
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <ConsultaPedidoDeExecucao xmlns="http://toledobrasil.com.br/WS_Guardian">
      <ID>int</ID>
    </ConsultaPedidoDeExecucao>
  </soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <ConsultaPedidoDeExecucaoResponse xmlns="http://toledobrasil.com.br/WS_Guardian">
      <ConsultaPedidoDeExecucaoResult>int</ConsultaPedidoDeExecucaoResult>
      <Erro>int</Erro>
      <ErroMSG>string</ErroMSG>
    </ConsultaPedidoDeExecucaoResponse>
  </soap12:Body>
</soap12:Envelope>