SRIReGarWSv1


Click here for a complete list of operations.

consultarGuia

Método para consultar os detalhes de uma guia.

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 /egar/wsv1.asmx HTTP/1.1
Host: devsrir.azores.gov.pt
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "https://srir.azores.gov.pt/egar/wsv1/consultarGuia"

<?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>
    <consultarGuia xmlns="https://srir.azores.gov.pt/egar/wsv1">
      <cgi>
        <idGuia>
          <numeroGuia>string</numeroGuia>
          <codigoVerificacao>string</codigoVerificacao>
        </idGuia>
        <tokenEntidade>string</tokenEntidade>
      </cgi>
    </consultarGuia>
  </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>
    <consultarGuiaResponse xmlns="https://srir.azores.gov.pt/egar/wsv1">
      <consultarGuiaResult>
        <Result>
          <Codigo>string</Codigo>
          <desResultado>string</desResultado>
        </Result>
        <erroList>
          <Erro>
            <Codigo>string</Codigo>
            <descErro>string</descErro>
          </Erro>
          <Erro>
            <Codigo>string</Codigo>
            <descErro>string</descErro>
          </Erro>
        </erroList>
        <guia>
          <produtorDetentor>
            <id_entidade>string</id_entidade>
            <tipoRemetente>PRODUTOR or OBRAS_RCD or PRESTADOR_SERVICOS or VEICULO_FIM_VIDA</tipoRemetente>
            <nif>string</nif>
            <nome>string</nome>
            <estabelecimento>string</estabelecimento>
            <codigoObra>string</codigoObra>
            <vfvProprietario>string</vfvProprietario>
            <vfvMatricula>string</vfvMatricula>
            <morada>string</morada>
            <localidade>string</localidade>
            <codigoPostal>string</codigoPostal>
            <concelho>string</concelho>
          </produtorDetentor>
          <residuosTransportados>
            <residuoTransportado xsi:nil="true" />
            <residuoTransportado xsi:nil="true" />
          </residuosTransportados>
          <transportadores>
            <transportador xsi:nil="true" />
            <transportador xsi:nil="true" />
          </transportadores>
          <operadorGestaoResiduos>
            <id_entidade>string</id_entidade>
            <codigoAPA>string</codigoAPA>
            <nif>string</nif>
            <nome>string</nome>
            <estabelecimento>string</estabelecimento>
            <morada>string</morada>
            <localidade>string</localidade>
            <codigoPostal>string</codigoPostal>
            <concelho>string</concelho>
          </operadorGestaoResiduos>
          <numeroGuia>string</numeroGuia>
          <codigoVerificacao>string</codigoVerificacao>
          <url>string</url>
          <gru>int</gru>
          <tipoInterveniente>string</tipoInterveniente>
          <autorizada>int</autorizada>
          <corrigida>int</corrigida>
          <estado>string</estado>
          <dataEstado>dateTime</dataEstado>
          <dataFimTransporte>dateTime</dataFimTransporte>
        </guia>
      </consultarGuiaResult>
    </consultarGuiaResponse>
  </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 /egar/wsv1.asmx HTTP/1.1
Host: devsrir.azores.gov.pt
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>
    <consultarGuia xmlns="https://srir.azores.gov.pt/egar/wsv1">
      <cgi>
        <idGuia>
          <numeroGuia>string</numeroGuia>
          <codigoVerificacao>string</codigoVerificacao>
        </idGuia>
        <tokenEntidade>string</tokenEntidade>
      </cgi>
    </consultarGuia>
  </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>
    <consultarGuiaResponse xmlns="https://srir.azores.gov.pt/egar/wsv1">
      <consultarGuiaResult>
        <Result>
          <Codigo>string</Codigo>
          <desResultado>string</desResultado>
        </Result>
        <erroList>
          <Erro>
            <Codigo>string</Codigo>
            <descErro>string</descErro>
          </Erro>
          <Erro>
            <Codigo>string</Codigo>
            <descErro>string</descErro>
          </Erro>
        </erroList>
        <guia>
          <produtorDetentor>
            <id_entidade>string</id_entidade>
            <tipoRemetente>PRODUTOR or OBRAS_RCD or PRESTADOR_SERVICOS or VEICULO_FIM_VIDA</tipoRemetente>
            <nif>string</nif>
            <nome>string</nome>
            <estabelecimento>string</estabelecimento>
            <codigoObra>string</codigoObra>
            <vfvProprietario>string</vfvProprietario>
            <vfvMatricula>string</vfvMatricula>
            <morada>string</morada>
            <localidade>string</localidade>
            <codigoPostal>string</codigoPostal>
            <concelho>string</concelho>
          </produtorDetentor>
          <residuosTransportados>
            <residuoTransportado xsi:nil="true" />
            <residuoTransportado xsi:nil="true" />
          </residuosTransportados>
          <transportadores>
            <transportador xsi:nil="true" />
            <transportador xsi:nil="true" />
          </transportadores>
          <operadorGestaoResiduos>
            <id_entidade>string</id_entidade>
            <codigoAPA>string</codigoAPA>
            <nif>string</nif>
            <nome>string</nome>
            <estabelecimento>string</estabelecimento>
            <morada>string</morada>
            <localidade>string</localidade>
            <codigoPostal>string</codigoPostal>
            <concelho>string</concelho>
          </operadorGestaoResiduos>
          <numeroGuia>string</numeroGuia>
          <codigoVerificacao>string</codigoVerificacao>
          <url>string</url>
          <gru>int</gru>
          <tipoInterveniente>string</tipoInterveniente>
          <autorizada>int</autorizada>
          <corrigida>int</corrigida>
          <estado>string</estado>
          <dataEstado>dateTime</dataEstado>
          <dataFimTransporte>dateTime</dataFimTransporte>
        </guia>
      </consultarGuiaResult>
    </consultarGuiaResponse>
  </soap12:Body>
</soap12:Envelope>