WS_GUARDIAN


Click here for a complete list of operations.

CancelaUltimaOperacaoAtiva

[OBSOLETO]

Este método é responsável por:
Permitir Cancelar a última operação do Ticket.

É aplicado apenas em casos de Tickets diferentes de Cancelados.
Se houver apenas uma operação ativa no Ticket e este método for chamado, o ticket será cancelado.
Esse Web Metodo poderá ser executado N vezes no mesmo ticket cancelando todas as operações do Ticket.
Em Tickets encerrados o mesmo ser[a reaberto o Ticket.
Porem será, verificado se não existe outro Ticket aberto com a mesma Placa ou TAG. Nesse caso deverá retornar erro.
O sistema tentará encontrar o Ticket na seguinte ordem de prioridade, de acordo com o parametro que for preenchido:
- 1º Código do Ticket
- 2º Último Ticket da Placa
- 3º Último Ticket do TAG

Parâmetros de entrada:
- ticketCodigo (String - Opcional desde que “ticketPlaca” ou “ticketTAG” esteja preenchidas) = Código ou Número do Ticket.
- ticketPlaca (String - Opcional desde que “ticketCodigo” ou “ticketTAG” esteja preenchidas) = Placa da carreta/vagão.
- ticketTAG (String - Opcional desde que “ticketCodigo” ou “ticketPlaca” esteja preenchidas) = TAG, Transponder ou Código de Barras de Identificação Associada do Ticket.
Parâmetros de saída:
- SaiErro (Inteiro - Opcional) = Retorna o número do erro, em caso se sucesso retorna 0.
- SaiErroMSG(string - Opcional) = Retorna a descrição do erro, em caso se sucesso retorna vazio.
Retornos:
- Retorno da Função (Booleano) = Retorna Verdadeiro (True) em caso de Sucesso da operação.

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_622/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/CancelaUltimaOperacaoAtiva"

<?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>
    <CancelaUltimaOperacaoAtiva xmlns="http://toledobrasil.com.br/WS_Guardian">
      <ticketCodigo>string</ticketCodigo>
      <ticketPlaca>string</ticketPlaca>
      <ticketTAG>string</ticketTAG>
    </CancelaUltimaOperacaoAtiva>
  </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>
    <CancelaUltimaOperacaoAtivaResponse xmlns="http://toledobrasil.com.br/WS_Guardian">
      <CancelaUltimaOperacaoAtivaResult>boolean</CancelaUltimaOperacaoAtivaResult>
      <SaiErro>int</SaiErro>
      <SaiErroMSG>string</SaiErroMSG>
    </CancelaUltimaOperacaoAtivaResponse>
  </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_622/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>
    <CancelaUltimaOperacaoAtiva xmlns="http://toledobrasil.com.br/WS_Guardian">
      <ticketCodigo>string</ticketCodigo>
      <ticketPlaca>string</ticketPlaca>
      <ticketTAG>string</ticketTAG>
    </CancelaUltimaOperacaoAtiva>
  </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>
    <CancelaUltimaOperacaoAtivaResponse xmlns="http://toledobrasil.com.br/WS_Guardian">
      <CancelaUltimaOperacaoAtivaResult>boolean</CancelaUltimaOperacaoAtivaResult>
      <SaiErro>int</SaiErro>
      <SaiErroMSG>string</SaiErroMSG>
    </CancelaUltimaOperacaoAtivaResponse>
  </soap12:Body>
</soap12:Envelope>