Marshal « cxf « Java Enterprise Q&A





1. How do I marshal java.util.List with JAXB like JAX-RS (CXF, and Jersey) do    stackoverflow.com

It seems the latest JAX-RS can handle methods returning java.util.List as the XMLRootElement but normal JAXB cannot. I would like to mimic what CXF and Jersey are doing. In other words I would ...

2. JAXB XmlJavaTypeAdapter is not called when Marshalling Object to Enum type    stackoverflow.com

I am converting my web application to web servcies using CXF. My web application has classes build to work as enum. Example:

package test.javabean;
import java.util.HashMap;
import java.util.Map;

public class GlassType {

private static Map<String, GlassType> ...

3. org.apache.cxf.interceptor.Fault: Marshalling Error: null    stackoverflow.com

I have created a webservice using cxf 3.4.1 When I send a request to the webservice it works fine but sometimes for one or other request it gives me error with the ...

4. Can't Marshal java.lang.String    stackoverflow.com

Here is my dilemma: I have a dto class for marshaling back and forth from/to XML. Here is the trick: Because of the number of dto classes our project deals with ...

5. Marshalling enum attributes into XML using JAXB and JAXWS Annotations    stackoverflow.com

Let's say we have the following Java 1.5 enumeration:

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;

@XmlAccessorType(XmlAccessType.FIELD)
public enum ReturnCode {
    OK(0,"Ok"),
    ERROR_VALIDATION(1,"Validation Error"),
    ERROR_TRANSPORT(2, "Transport ...

6. Apache CXF - ignore setters when marshalling    coderanch.com

Hey guys, I am playing around with Webservices and Apache CXF. The framework does pretty much everything by itself which is nice. I did not quite get behind the mechanics of the automatic marshalling process. It appears, that by default the framework scans the data classes to be shipped over the network to find setter and getter methods and those are ...

7. org.apache.cxf.interceptor.Fault: Marshalling Error: null    coderanch.com

Hi, I have created a webservice using cxf 3.4.1 When I send a request to the webservice it works fine but sometimes for one or other request it gives me error with the following stack trace on the console. I am using jdk 1.6 , jboss 5.1.0 GA , jbossws-cxf-3.4.1.GA Can anybody help me resolving this issue? Thanks in Advance......... I ...