Class: SEFAZ::Webservice::NFE::Connection

Inherits:
Utils::Connection show all
Defined in:
lib/sefaz/webservice/nfe/connection.rb

Overview

Principal classe de conexão SOAP com o módulo NF-e/NFC-e

Instance Method Summary collapse

Methods inherited from Utils::Connection

#build, #call, #connected?, #operations

Constructor Details

#initialize(pkcs12, wsdl, versaoDados, cUF) ⇒ Connection

Returns a new instance of Connection.



9
10
11
12
# File 'lib/sefaz/webservice/nfe/connection.rb', line 9

def initialize(pkcs12, wsdl, versaoDados, cUF)
  @soap_header = { nfeCabecMsg: { versaoDados: versaoDados, cUF: cUF, :@xmlns => 'http://www.portalfiscal.inf.br/nfe' } }
  super(pkcs12, wsdl, @soap_header)
end