Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Axis Marshaller

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!

like image 837
cmutt78 Avatar asked Apr 28 '11 14:04

cmutt78


People also ask

What is Marshaller used for?

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.

What does Jaxb Marshaller do?

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.


1 Answers

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.

like image 57
cmutt78 Avatar answered Sep 28 '22 12:09

cmutt78