title: Manually XML-serializing a Java object
body: <p>I currently have to store a Java object of a class that is <strong>not</strong> implementing <code>Serializable</code> but is surely SOAP-serialized because was generated from a WSDL and <em>is</em> the input of a web service.</p>
  
  <p>Standard Java serialization, in fact, throws exception. I have no control over the classes, and the guys who created the classes are not willing to mark them <code>Serializable</code> by hand, because proxies were automatically generated from the WSDL (<code>wsdl2java</code>? They haven't told me...).</p>
  
  <p>So I need to transform that object into something else by not possibly cycling over each field.</p>
  
  <p>The .class files show the XML serialization attributes, so I suppose they are definitely XML-serializable.</p>
  
  <p>How to perform manual XML serialization of a Java object? I can do that in C# but not in Java.</p>
  
  <p>Thank you</p>