I have a group of classes that were created using wsdl2java (Axis 1.4) and am looking for a way to unmarshal and marshal the data from/to String and Object. I have written a JAXB unmarshaller that works well for some of our newer internal objects since we used xjc to create the classes but do not have time to convert the old axis classes and need to find a marshal/unmarshal solution for the code as-is.
Can somebody please point me in a direction.
Thanks!
As stated in the introduction, a marshaller serializes an object to XML, and an unmarshaller deserializes XML stream to an object. In this section, we will describe the two Spring interfaces used for this purpose.
JAXB provides a fast and convenient way to marshal (write) Java objects into XML and unmarshal (read) XML into objects. It supports a binding framework that maps XML elements and attributes to Java fields and properties using Java annotations.
I did find an answer to my own question so thought was worth posting.
Found a decent link that outlines the process with Axis: http://bwithers.wordpress.com/2006/07/29/serializing-an-axis-javabean-object-to-xml/
I still prefer JAXB over Axis but this will do.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With