PefService


Clique aqui para obter uma lista completa das operações.

AdicionarOperacaoTransporte

Testar

O formulário de teste está disponível somente para solicitações na máquina local.

SOAP 1.1

O exemplo a seguir mostra uma solicitação e uma resposta SOAP 1.1. Os espaços reservados mostrados devem ser substituídos por valores reais.

POST /PefService.asmx HTTP/1.1
Host: apisys.extratta.com.br
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://schemas.ipc.adm.br/efrete/pef/AdicionarOperacaoTransporte"

<?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>
    <AdicionarOperacaoTransporte xmlns="http://schemas.ipc.adm.br/efrete/pef">
      <AdicionarOperacaoTransporteRequest xmlns="http://schemas.ipc.adm.br/efrete/pef/objects">
        <FilialCNPJ>long</FilialCNPJ>
        <DataInicioViagem>dateTime</DataInicioViagem>
        <DataFimViagem>dateTime</DataFimViagem>
        <CodigoNCMNaturezaCarga>int</CodigoNCMNaturezaCarga>
        <PesoCarga>decimal</PesoCarga>
        <Viagens xmlns="http://schemas.ipc.adm.br/efrete/pef/AdicionarOperacaoTransporte">
          <DocumentoViagem>string</DocumentoViagem>
          <CNPJOrigem>string</CNPJOrigem>
          <CNPJDestino>string</CNPJDestino>
          <Valores xmlns="http://schemas.ipc.adm.br/efrete/pef/objects">
            <TotalOperacao>decimal</TotalOperacao>
            <TotalDeAdiantamento>decimal</TotalDeAdiantamento>
            <TotalDeQuitacao>decimal</TotalDeQuitacao>
            <Combustivel>decimal</Combustivel>
            <Pedagio>decimal</Pedagio>
          </Valores>
          <NotasFiscais>
            <NotaFiscal xsi:nil="true" />
            <NotaFiscal xsi:nil="true" />
          </NotasFiscais>
        </Viagens>
        <Viagens xmlns="http://schemas.ipc.adm.br/efrete/pef/AdicionarOperacaoTransporte">
          <DocumentoViagem>string</DocumentoViagem>
          <CNPJOrigem>string</CNPJOrigem>
          <CNPJDestino>string</CNPJDestino>
          <Valores xmlns="http://schemas.ipc.adm.br/efrete/pef/objects">
            <TotalOperacao>decimal</TotalOperacao>
            <TotalDeAdiantamento>decimal</TotalDeAdiantamento>
            <TotalDeQuitacao>decimal</TotalDeQuitacao>
            <Combustivel>decimal</Combustivel>
            <Pedagio>decimal</Pedagio>
          </Valores>
          <NotasFiscais>
            <NotaFiscal xsi:nil="true" />
            <NotaFiscal xsi:nil="true" />
          </NotasFiscais>
        </Viagens>
        <Impostos>
          <IRRF>decimal</IRRF>
          <SestSenat>decimal</SestSenat>
          <INSS>decimal</INSS>
        </Impostos>
        <Pagamentos xmlns="http://schemas.ipc.adm.br/efrete/pef/AdicionarOperacaoTransporte">
          <Valor>decimal</Valor>
          <Documento>string</Documento>
          <InformacoesBancarias xmlns="http://schemas.ipc.adm.br/efrete/pef/objects">
            <Agencia>string</Agencia>
            <Conta>string</Conta>
          </InformacoesBancarias>
        </Pagamentos>
        <Pagamentos xmlns="http://schemas.ipc.adm.br/efrete/pef/AdicionarOperacaoTransporte">
          <Valor>decimal</Valor>
          <Documento>string</Documento>
          <InformacoesBancarias xmlns="http://schemas.ipc.adm.br/efrete/pef/objects">
            <Agencia>string</Agencia>
            <Conta>string</Conta>
          </InformacoesBancarias>
        </Pagamentos>
        <Contratado xmlns="http://schemas.ipc.adm.br/efrete/pef/AdicionarOperacaoTransporte">
          <CpfOuCnpj>long</CpfOuCnpj>
          <RNTRC>long</RNTRC>
        </Contratado>
        <Motorista xmlns="http://schemas.ipc.adm.br/efrete/pef/AdicionarOperacaoTransporte">
          <CpfOuCnpj>long</CpfOuCnpj>
        </Motorista>
        <Destinatario />
        <Contratante />
        <TomadorServico />
        <Veiculos xmlns="http://schemas.ipc.adm.br/efrete/pef/AdicionarOperacaoTransporte">
          <Placa>string</Placa>
        </Veiculos>
        <Veiculos xmlns="http://schemas.ipc.adm.br/efrete/pef/AdicionarOperacaoTransporte">
          <Placa>string</Placa>
        </Veiculos>
      </AdicionarOperacaoTransporteRequest>
    </AdicionarOperacaoTransporte>
  </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>
    <AdicionarOperacaoTransporteResponse xmlns="http://schemas.ipc.adm.br/efrete/pef">
      <AdicionarOperacaoTransporteResult xmlns="http://schemas.ipc.adm.br/efrete/pef/objects">
        <CodigoIdentificacaoOperacao>string</CodigoIdentificacaoOperacao>
      </AdicionarOperacaoTransporteResult>
    </AdicionarOperacaoTransporteResponse>
  </soap:Body>
</soap:Envelope>

SOAP 1.2

O exemplo a seguir mostra uma solicitação e uma resposta SOAP 1.2. Os espaços reservados mostrados devem ser substituídos por valores reais.

POST /PefService.asmx HTTP/1.1
Host: apisys.extratta.com.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>
    <AdicionarOperacaoTransporte xmlns="http://schemas.ipc.adm.br/efrete/pef">
      <AdicionarOperacaoTransporteRequest xmlns="http://schemas.ipc.adm.br/efrete/pef/objects">
        <FilialCNPJ>long</FilialCNPJ>
        <DataInicioViagem>dateTime</DataInicioViagem>
        <DataFimViagem>dateTime</DataFimViagem>
        <CodigoNCMNaturezaCarga>int</CodigoNCMNaturezaCarga>
        <PesoCarga>decimal</PesoCarga>
        <Viagens xmlns="http://schemas.ipc.adm.br/efrete/pef/AdicionarOperacaoTransporte">
          <DocumentoViagem>string</DocumentoViagem>
          <CNPJOrigem>string</CNPJOrigem>
          <CNPJDestino>string</CNPJDestino>
          <Valores xmlns="http://schemas.ipc.adm.br/efrete/pef/objects">
            <TotalOperacao>decimal</TotalOperacao>
            <TotalDeAdiantamento>decimal</TotalDeAdiantamento>
            <TotalDeQuitacao>decimal</TotalDeQuitacao>
            <Combustivel>decimal</Combustivel>
            <Pedagio>decimal</Pedagio>
          </Valores>
          <NotasFiscais>
            <NotaFiscal xsi:nil="true" />
            <NotaFiscal xsi:nil="true" />
          </NotasFiscais>
        </Viagens>
        <Viagens xmlns="http://schemas.ipc.adm.br/efrete/pef/AdicionarOperacaoTransporte">
          <DocumentoViagem>string</DocumentoViagem>
          <CNPJOrigem>string</CNPJOrigem>
          <CNPJDestino>string</CNPJDestino>
          <Valores xmlns="http://schemas.ipc.adm.br/efrete/pef/objects">
            <TotalOperacao>decimal</TotalOperacao>
            <TotalDeAdiantamento>decimal</TotalDeAdiantamento>
            <TotalDeQuitacao>decimal</TotalDeQuitacao>
            <Combustivel>decimal</Combustivel>
            <Pedagio>decimal</Pedagio>
          </Valores>
          <NotasFiscais>
            <NotaFiscal xsi:nil="true" />
            <NotaFiscal xsi:nil="true" />
          </NotasFiscais>
        </Viagens>
        <Impostos>
          <IRRF>decimal</IRRF>
          <SestSenat>decimal</SestSenat>
          <INSS>decimal</INSS>
        </Impostos>
        <Pagamentos xmlns="http://schemas.ipc.adm.br/efrete/pef/AdicionarOperacaoTransporte">
          <Valor>decimal</Valor>
          <Documento>string</Documento>
          <InformacoesBancarias xmlns="http://schemas.ipc.adm.br/efrete/pef/objects">
            <Agencia>string</Agencia>
            <Conta>string</Conta>
          </InformacoesBancarias>
        </Pagamentos>
        <Pagamentos xmlns="http://schemas.ipc.adm.br/efrete/pef/AdicionarOperacaoTransporte">
          <Valor>decimal</Valor>
          <Documento>string</Documento>
          <InformacoesBancarias xmlns="http://schemas.ipc.adm.br/efrete/pef/objects">
            <Agencia>string</Agencia>
            <Conta>string</Conta>
          </InformacoesBancarias>
        </Pagamentos>
        <Contratado xmlns="http://schemas.ipc.adm.br/efrete/pef/AdicionarOperacaoTransporte">
          <CpfOuCnpj>long</CpfOuCnpj>
          <RNTRC>long</RNTRC>
        </Contratado>
        <Motorista xmlns="http://schemas.ipc.adm.br/efrete/pef/AdicionarOperacaoTransporte">
          <CpfOuCnpj>long</CpfOuCnpj>
        </Motorista>
        <Destinatario />
        <Contratante />
        <TomadorServico />
        <Veiculos xmlns="http://schemas.ipc.adm.br/efrete/pef/AdicionarOperacaoTransporte">
          <Placa>string</Placa>
        </Veiculos>
        <Veiculos xmlns="http://schemas.ipc.adm.br/efrete/pef/AdicionarOperacaoTransporte">
          <Placa>string</Placa>
        </Veiculos>
      </AdicionarOperacaoTransporteRequest>
    </AdicionarOperacaoTransporte>
  </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>
    <AdicionarOperacaoTransporteResponse xmlns="http://schemas.ipc.adm.br/efrete/pef">
      <AdicionarOperacaoTransporteResult xmlns="http://schemas.ipc.adm.br/efrete/pef/objects">
        <CodigoIdentificacaoOperacao>string</CodigoIdentificacaoOperacao>
      </AdicionarOperacaoTransporteResult>
    </AdicionarOperacaoTransporteResponse>
  </soap12:Body>
</soap12:Envelope>