is.setCharacterStream(new StringReader(CorreiosService.sendRequest(parameters)));
doc = db.parse(is);
Node servicos = doc.getFirstChild();
JAXBContext jc = JAXBContext.newInstance(Frete.class);
Unmarshaller u = jc.createUnmarshaller();
Frete frete = u.unmarshal( servicos.getFirstChild(), Frete.class).getValue();
if (frete.getErro()!= 0){
throw new CorreiosException(frete.getErro(), frete.getMensagemErro());
}
return frete;
} catch (JAXBException e) {
e.printStackTrace();