Ian,

I tried this recipe, and, using the CXF trunk (on which I am a
committer :-), I didn't get as much functionality as I had hoped from
our email exchange.

Using the following class, CXF with JAXB delivered base64 to the string!
It went to all the trouble to take the raw text from the attachment
(which arrived in text/plain) and base64-encode it to deliver it.

So, I fell back to 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;
    }
}


Reply via email to