SRIReGarWSv1


Click here for a complete list of operations.

consultaEstabelecimentosSRIR

Método para consulta através do NIF de Entidades registadas no SRIR.

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/consultaEstabelecimentosSRIR"

<?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>
    <consultaEstabelecimentosSRIR xmlns="https://srir.azores.gov.pt/egar/wsv1">
      <cei>
        <tokenEntidade>string</tokenEntidade>
        <NIF>string</NIF>
      </cei>
    </consultaEstabelecimentosSRIR>
  </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>
    <consultaEstabelecimentosSRIRResponse xmlns="https://srir.azores.gov.pt/egar/wsv1">
      <consultaEstabelecimentosSRIRResult>
        <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>
        <estabelecimentos>
          <estabelecimentoSRIR>
            <id_entidade>string</id_entidade>
            <NIF>string</NIF>
            <Entidade>string</Entidade>
            <Estabelecimento>string</Estabelecimento>
            <Morada>string</Morada>
            <Localidade>string</Localidade>
            <CP>string</CP>
            <Concelho>string</Concelho>
          </estabelecimentoSRIR>
          <estabelecimentoSRIR>
            <id_entidade>string</id_entidade>
            <NIF>string</NIF>
            <Entidade>string</Entidade>
            <Estabelecimento>string</Estabelecimento>
            <Morada>string</Morada>
            <Localidade>string</Localidade>
            <CP>string</CP>
            <Concelho>string</Concelho>
          </estabelecimentoSRIR>
        </estabelecimentos>
      </consultaEstabelecimentosSRIRResult>
    </consultaEstabelecimentosSRIRResponse>
  </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>
    <consultaEstabelecimentosSRIR xmlns="https://srir.azores.gov.pt/egar/wsv1">
      <cei>
        <tokenEntidade>string</tokenEntidade>
        <NIF>string</NIF>
      </cei>
    </consultaEstabelecimentosSRIR>
  </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>
    <consultaEstabelecimentosSRIRResponse xmlns="https://srir.azores.gov.pt/egar/wsv1">
      <consultaEstabelecimentosSRIRResult>
        <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>
        <estabelecimentos>
          <estabelecimentoSRIR>
            <id_entidade>string</id_entidade>
            <NIF>string</NIF>
            <Entidade>string</Entidade>
            <Estabelecimento>string</Estabelecimento>
            <Morada>string</Morada>
            <Localidade>string</Localidade>
            <CP>string</CP>
            <Concelho>string</Concelho>
          </estabelecimentoSRIR>
          <estabelecimentoSRIR>
            <id_entidade>string</id_entidade>
            <NIF>string</NIF>
            <Entidade>string</Entidade>
            <Estabelecimento>string</Estabelecimento>
            <Morada>string</Morada>
            <Localidade>string</Localidade>
            <CP>string</CP>
            <Concelho>string</Concelho>
          </estabelecimentoSRIR>
        </estabelecimentos>
      </consultaEstabelecimentosSRIRResult>
    </consultaEstabelecimentosSRIRResponse>
  </soap12:Body>
</soap12:Envelope>