Boa tarde a todos!
Estou com dificuldades ao utilizar a versão 2.0 da NF-e, quando vou fazer o unMarshall do retorno, conforme código abaixo…na linjha em destaque…
Eu utilizo JAXB-WS, e obtive meus schemas no site da SEFAZ de SP, assim como os WSDL…
JAXBContext jaxbCtxRetEnv = JAXBContext.newInstance(TRetEnviNFe.class.getPackage().getName());
Unmarshaller unmarshallerRetEnv = jaxbCtxRetEnv.createUnmarshaller();
[b]JAXBElement<TRetEnviNFe> jRetEnviNFe = (JAXBElement<TRetEnviNFe>) unmarshallerRetEnv.unmarshal(new StringReader(linhasXml));[/b]
TRetEnviNFe retEnviNfe = jRetEnviNFe.getValue();
Alguém passou por isso? Sabe o que pode ser?
P.S.: Ah, detalhe já uso isso na versão 1.10, e funciona normalmente.
Atenciosamente,
Leonardo.