wsDetranBA


Click here for a complete list of operations.

consultaApreensao

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 /wsDetranBA.asmx HTTP/1.1
Host: api.detranba.gestordepatios.app.br
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://linkpatios.prod/consultaApreensao"

<?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>
    <consultaApreensao xmlns="http://linkpatios.prod/">
      <Input>
        <codigoUsuario xmlns="http://www.wsdetranpatio.com/">integer</codigoUsuario>
        <senhaUsuario xmlns="http://www.wsdetranpatio.com/">string</senhaUsuario>
        <codigoOperacao xmlns="http://www.wsdetranpatio.com/">string</codigoOperacao>
        <tipoArgumento xmlns="http://www.wsdetranpatio.com/">string</tipoArgumento>
        <argumento xmlns="http://www.wsdetranpatio.com/">string</argumento>
        <codigoPatio xmlns="http://www.wsdetranpatio.com/">integer</codigoPatio>
        <historicoApreens xmlns="http://www.wsdetranpatio.com/">integer</historicoApreens>
      </Input>
    </consultaApreensao>
  </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>
    <consultaApreensaoResponse xmlns="http://linkpatios.prod/">
      <consultaApreensaoResult>
        <codigoUsuario xmlns="http://www.wsdetranpatio.com/">integer</codigoUsuario>
        <senhaUsuario xmlns="http://www.wsdetranpatio.com/">string</senhaUsuario>
        <codigoOperacao xmlns="http://www.wsdetranpatio.com/">string</codigoOperacao>
        <tipoArgumento xmlns="http://www.wsdetranpatio.com/">string</tipoArgumento>
        <argumento xmlns="http://www.wsdetranpatio.com/">string</argumento>
        <codigoPatio xmlns="http://www.wsdetranpatio.com/">integer</codigoPatio>
        <historicoApreens xmlns="http://www.wsdetranpatio.com/">integer</historicoApreens>
        <historicoApreens_List xmlns="http://www.wsdetranpatio.com/">
          <row>
            <column>string</column>
            <column>string</column>
          </row>
          <row>
            <column>string</column>
            <column>string</column>
          </row>
        </historicoApreens_List>
        <codigoRetExec xmlns="http://www.wsdetranpatio.com/">integer</codigoRetExec>
        <termoRemocao xmlns="http://www.wsdetranpatio.com/">integer</termoRemocao>
        <origemTermo xmlns="http://www.wsdetranpatio.com/">string</origemTermo>
        <numeroTrav xmlns="http://www.wsdetranpatio.com/">integer</numeroTrav>
        <placaVeiculo xmlns="http://www.wsdetranpatio.com/">string</placaVeiculo>
        <cor xmlns="http://www.wsdetranpatio.com/">string</cor>
        <chassi xmlns="http://www.wsdetranpatio.com/">string</chassi>
        <tipoVeiculo xmlns="http://www.wsdetranpatio.com/">string</tipoVeiculo>
        <nomeMunicipio xmlns="http://www.wsdetranpatio.com/">string</nomeMunicipio>
        <marcaModelo xmlns="http://www.wsdetranpatio.com/">string</marcaModelo>
        <vlDebitoLicenc xmlns="http://www.wsdetranpatio.com/">decimal</vlDebitoLicenc>
        <vlDebitoMultas xmlns="http://www.wsdetranpatio.com/">decimal</vlDebitoMultas>
        <dataEntrada xmlns="http://www.wsdetranpatio.com/">integer</dataEntrada>
        <horaEntrada xmlns="http://www.wsdetranpatio.com/">integer</horaEntrada>
        <motivoApreensao xmlns="http://www.wsdetranpatio.com/">string</motivoApreensao>
        <codZonaReboque xmlns="http://www.wsdetranpatio.com/">integer</codZonaReboque>
        <descZonaReboque xmlns="http://www.wsdetranpatio.com/">string</descZonaReboque>
        <municipioApreens xmlns="http://www.wsdetranpatio.com/">string</municipioApreens>
        <localApreensao xmlns="http://www.wsdetranpatio.com/">string</localApreensao>
        <statusApreensao xmlns="http://www.wsdetranpatio.com/">string</statusApreensao>
        <statusPagamento xmlns="http://www.wsdetranpatio.com/">string</statusPagamento>
        <dataPagamento xmlns="http://www.wsdetranpatio.com/">integer</dataPagamento>
        <vlPagoPatio xmlns="http://www.wsdetranpatio.com/">decimal</vlPagoPatio>
        <dataEmissLibere xmlns="http://www.wsdetranpatio.com/">integer</dataEmissLibere>
        <horaEmissLibere xmlns="http://www.wsdetranpatio.com/">integer</horaEmissLibere>
        <dataEntregaVeic xmlns="http://www.wsdetranpatio.com/">integer</dataEntregaVeic>
        <horaEntregaVeic xmlns="http://www.wsdetranpatio.com/">integer</horaEntregaVeic>
        <dataPrevRetorno xmlns="http://www.wsdetranpatio.com/">integer</dataPrevRetorno>
        <dataRetorno xmlns="http://www.wsdetranpatio.com/">integer</dataRetorno>
        <nomeCondutor xmlns="http://www.wsdetranpatio.com/">string</nomeCondutor>
        <respLiberaVeic xmlns="http://www.wsdetranpatio.com/">string</respLiberaVeic>
        <qtDiarias xmlns="http://www.wsdetranpatio.com/">integer</qtDiarias>
        <valorDiarias xmlns="http://www.wsdetranpatio.com/">decimal</valorDiarias>
        <valorReboque xmlns="http://www.wsdetranpatio.com/">decimal</valorReboque>
        <valorTotalApree xmlns="http://www.wsdetranpatio.com/">decimal</valorTotalApree>
        <StatusMessages xmlns="http://www.wsdetranpatio.com/">
          <StatusMessage>string</StatusMessage>
          <StatusMessage>string</StatusMessage>
        </StatusMessages>
      </consultaApreensaoResult>
    </consultaApreensaoResponse>
  </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 /wsDetranBA.asmx HTTP/1.1
Host: api.detranba.gestordepatios.app.br
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>
    <consultaApreensao xmlns="http://linkpatios.prod/">
      <Input>
        <codigoUsuario xmlns="http://www.wsdetranpatio.com/">integer</codigoUsuario>
        <senhaUsuario xmlns="http://www.wsdetranpatio.com/">string</senhaUsuario>
        <codigoOperacao xmlns="http://www.wsdetranpatio.com/">string</codigoOperacao>
        <tipoArgumento xmlns="http://www.wsdetranpatio.com/">string</tipoArgumento>
        <argumento xmlns="http://www.wsdetranpatio.com/">string</argumento>
        <codigoPatio xmlns="http://www.wsdetranpatio.com/">integer</codigoPatio>
        <historicoApreens xmlns="http://www.wsdetranpatio.com/">integer</historicoApreens>
      </Input>
    </consultaApreensao>
  </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>
    <consultaApreensaoResponse xmlns="http://linkpatios.prod/">
      <consultaApreensaoResult>
        <codigoUsuario xmlns="http://www.wsdetranpatio.com/">integer</codigoUsuario>
        <senhaUsuario xmlns="http://www.wsdetranpatio.com/">string</senhaUsuario>
        <codigoOperacao xmlns="http://www.wsdetranpatio.com/">string</codigoOperacao>
        <tipoArgumento xmlns="http://www.wsdetranpatio.com/">string</tipoArgumento>
        <argumento xmlns="http://www.wsdetranpatio.com/">string</argumento>
        <codigoPatio xmlns="http://www.wsdetranpatio.com/">integer</codigoPatio>
        <historicoApreens xmlns="http://www.wsdetranpatio.com/">integer</historicoApreens>
        <historicoApreens_List xmlns="http://www.wsdetranpatio.com/">
          <row>
            <column>string</column>
            <column>string</column>
          </row>
          <row>
            <column>string</column>
            <column>string</column>
          </row>
        </historicoApreens_List>
        <codigoRetExec xmlns="http://www.wsdetranpatio.com/">integer</codigoRetExec>
        <termoRemocao xmlns="http://www.wsdetranpatio.com/">integer</termoRemocao>
        <origemTermo xmlns="http://www.wsdetranpatio.com/">string</origemTermo>
        <numeroTrav xmlns="http://www.wsdetranpatio.com/">integer</numeroTrav>
        <placaVeiculo xmlns="http://www.wsdetranpatio.com/">string</placaVeiculo>
        <cor xmlns="http://www.wsdetranpatio.com/">string</cor>
        <chassi xmlns="http://www.wsdetranpatio.com/">string</chassi>
        <tipoVeiculo xmlns="http://www.wsdetranpatio.com/">string</tipoVeiculo>
        <nomeMunicipio xmlns="http://www.wsdetranpatio.com/">string</nomeMunicipio>
        <marcaModelo xmlns="http://www.wsdetranpatio.com/">string</marcaModelo>
        <vlDebitoLicenc xmlns="http://www.wsdetranpatio.com/">decimal</vlDebitoLicenc>
        <vlDebitoMultas xmlns="http://www.wsdetranpatio.com/">decimal</vlDebitoMultas>
        <dataEntrada xmlns="http://www.wsdetranpatio.com/">integer</dataEntrada>
        <horaEntrada xmlns="http://www.wsdetranpatio.com/">integer</horaEntrada>
        <motivoApreensao xmlns="http://www.wsdetranpatio.com/">string</motivoApreensao>
        <codZonaReboque xmlns="http://www.wsdetranpatio.com/">integer</codZonaReboque>
        <descZonaReboque xmlns="http://www.wsdetranpatio.com/">string</descZonaReboque>
        <municipioApreens xmlns="http://www.wsdetranpatio.com/">string</municipioApreens>
        <localApreensao xmlns="http://www.wsdetranpatio.com/">string</localApreensao>
        <statusApreensao xmlns="http://www.wsdetranpatio.com/">string</statusApreensao>
        <statusPagamento xmlns="http://www.wsdetranpatio.com/">string</statusPagamento>
        <dataPagamento xmlns="http://www.wsdetranpatio.com/">integer</dataPagamento>
        <vlPagoPatio xmlns="http://www.wsdetranpatio.com/">decimal</vlPagoPatio>
        <dataEmissLibere xmlns="http://www.wsdetranpatio.com/">integer</dataEmissLibere>
        <horaEmissLibere xmlns="http://www.wsdetranpatio.com/">integer</horaEmissLibere>
        <dataEntregaVeic xmlns="http://www.wsdetranpatio.com/">integer</dataEntregaVeic>
        <horaEntregaVeic xmlns="http://www.wsdetranpatio.com/">integer</horaEntregaVeic>
        <dataPrevRetorno xmlns="http://www.wsdetranpatio.com/">integer</dataPrevRetorno>
        <dataRetorno xmlns="http://www.wsdetranpatio.com/">integer</dataRetorno>
        <nomeCondutor xmlns="http://www.wsdetranpatio.com/">string</nomeCondutor>
        <respLiberaVeic xmlns="http://www.wsdetranpatio.com/">string</respLiberaVeic>
        <qtDiarias xmlns="http://www.wsdetranpatio.com/">integer</qtDiarias>
        <valorDiarias xmlns="http://www.wsdetranpatio.com/">decimal</valorDiarias>
        <valorReboque xmlns="http://www.wsdetranpatio.com/">decimal</valorReboque>
        <valorTotalApree xmlns="http://www.wsdetranpatio.com/">decimal</valorTotalApree>
        <StatusMessages xmlns="http://www.wsdetranpatio.com/">
          <StatusMessage>string</StatusMessage>
          <StatusMessage>string</StatusMessage>
        </StatusMessages>
      </consultaApreensaoResult>
    </consultaApreensaoResponse>
  </soap12:Body>
</soap12:Envelope>