Attachment with SOAP Handler using CXF
<p>I'm trying to attach a file with a SOAP Handler using Apache CXF, but it doesn't work.</p>

<p>My example is here.</p>

<p><a href="https://github.com/emag-notes/cxf-soaphandler-demo" rel="nofollow">https://github.com/emag-notes/cxf-soaphandler-demo</a></p>

<p>In this example, I use SAAJ API to attach a file.</p>

<p><a href="https://github.com/emag-notes/cxf-soaphandler-demo/blob/master/server/src/main/java/cxf/soaphandler/AttachmentHandler.java#L49-L54" rel="nofollow">https://github.com/emag-notes/cxf-soaphandler-demo/blob/master/server/src/main/java/cxf/soaphandler/AttachmentHandler.java#L49-L54</a></p>

<p>However, the SOAP Message response is a just SOAP Envelope, not multipart(not
including the file I attached).</p>

<p>Am I missing something? This code works with Apache Axis2.</p>

<p>Even though I know using MTOM is the best option, I'd like to use my existing codes AMAP for now(I'm working on migration from Axis2).</p>