def set_xml(self, arquivo): if self._le_xml(arquivo): resposta = por_acentos(self._le_tag('//*/' + self.metodo + 'Return')) resposta = tira_abertura(resposta) self.resposta.xml = resposta return self.xml
def set_xml(self, arquivo): if self._le_xml(arquivo): resposta = por_acentos( self._le_tag('//*/' + self.metodo + 'Return')) resposta = tira_abertura(resposta) self.resposta.xml = resposta return self.xml
def set_xml(self, arquivo): if self._le_xml(arquivo): resposta = por_acentos(self._le_tag('//*/res:' + self.metodo + 'Result', ns=('http://www.portalfiscal.inf.br/nfe/wsdl/' + self.webservice))) resposta = tira_abertura(resposta) #print resposta self.resposta.xml = resposta return self.xml
def set_xml(self, arquivo): if self._le_xml(arquivo): resposta = por_acentos( self._le_tag('//*/res:' + self.metodo + 'Result', ns=('http://www.portalfiscal.inf.br/nfe/wsdl/' + self.webservice))) resposta = tira_abertura(resposta) #print resposta self.resposta.xml = resposta return self.xml