I have generated some java classes from a wsdl and I'm now trying to marshal them to an xml. Here is my java code that does what I've explained
JAXBContext jaxbContext = JAXBContext.newInstance( EnviarFacturaRequest.class );
Marshaller jaxbMarshaller = jaxbContext.createMarshaller();
jaxbMarshaller.marshal(efr, new PrintWriter( System.out ));
When I run this code it tells me that the @XmlRootElement is missing. Would I be able to modify the generated classes to add the tag myself? I have gone to the class but eclipse warns me about editting the derived classes.