cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benson Margulies <bimargul...@gmail.com>
Subject Re: more specific MtoM puzzle
Date Wed, 16 Jan 2008 14:49:37 GMT
Dan,

I got it to work. There were not enough newlines.

However, I got really confused about mime types and schema types. I
discovered that CXF insists on delivering base64 to a string even when
there is an XmlMimeType clueing it in that I really just want the text
from the attachment. So the following doesn't work, and I had to switch
to using a DataHandler. 


@XmlType(namespace = "uri:org.apache.cxf.javascript.testns")
public class MtoMParameterBeanNoDataHandler {
    private String ordinary;
    private String notXml10;
    
    public String getOrdinary() {
        return ordinary;
    }
    public void setOrdinary(String ordinary) {
        this.ordinary = ordinary;
    }
    
    @XmlMimeType("text/plain")
    @XmlSchemaType(name = "base64Binary")
    public String getNotXml10() {
        return notXml10;
    }
    public void setNotXml10(String notXml10) {
        this.notXml10 = notXml10;
    }
}



Mime
View raw message