marshal « jaxb « Java Enterprise Q&A





1. JAX-WS MarshalException with custom JAX-B bindings: Unable to marshal type "java.lang.String" as an element because it is missing an @XmlRootElement ...    stackoverflow.com

I seem to be having an issue with Jax-WS and Jax-b playing nicely together. I need to consume a web-service, which has a predefined WSDL. When executing the generated client I ...

2. best approach for marshaling unmarshaling immutable objects with builder pattern    stackoverflow.com

I have a simple restful service that I'm developing in java. I have been looking at a few of the options for marshalling/unmarshalling json. The possible approaches available, jaxb jackson etc, ...

3. JAXB Marshalling & Unmarshalling    stackoverflow.com

I am trying to study how the REST service approach works using Jersey. I have come up with 2 options when creating and accessing a REST service. I have 6 parameters which are ...

4. jaxb, marshalling, and java.util.calendar    coderanch.com

I have an issue with how a calendar is being marshalled into xml. I'm VERY new to jaxb, so my apologies if this is a stupid question. One of the objects I am marshalling has some fields that take a calendar object in the setters to set a data and a time. When the jaxb objects are mashalled into XML, the ...

5. What type of marshalling does JAXB use?    coderanch.com

Hi, It's described in the javadoc itself. I quote: Marshalling to a javax.xml.transform.SAXResult: // assume MyContentHandler instanceof ContentHandler SAXResult result = new SAXResult( new MyContentHandler() ); m.marshal( element, result ); Marshalling to a javax.xml.transform.DOMResult: DOMResult result = new DOMResult(); m.marshal( element, result ); Marshalling to a javax.xml.transform.StreamResult: StreamResult result = new StreamResult( System.out ); m.marshal( element, result ); Marshalling to a ...

6. JAXB and marshalling    coderanch.com