I am facing the following problem: when sending SAAJ requests with MTOM attachments , the original request body looks like this
<soapenv:Body>
<ns1:UploadMsgRq>
<ns2:Attachment><xop:Include href="cid:testfile.xml" xmlns:xop="http://www.w3.org/2004/08/xop/include"/></ns2:Attachment>
</ns1:UploadMsgRq>
</soapenv:Body>>
The attachment tag value get transformed to
<ns2:Attachment>PHN0YXJ0Pkdhc3Nlcjwvc3RhcnQ+</ns2:Attachment>
which is the base64 value of my attachments, I don't want this to happen, specially that the attachment is already added as MTOM part. Also the same code is working as desired on JBOSS.
Is there a special handling that I should do n websphere?