Description
SOAPConnectionImpl (which is part of the "*SOAP with Attachments* API for Java" implementation...) actually doesn't support SOAP with Attachments. Indeed it contains the following code:
if (request.countAttachments() != 0)
{ // SOAPMessage with attachments opClient.getOptions().setProperty(Constants.Configuration.ENABLE_MTOM, Constants.VALUE_TRUE); return handleSOAPMessage(request, opClient); }else
{ // simple SOAPMessage return handleSOAPMessage(request, opClient); }This implies that SOAPMessages that should normally be sent as a SwA messages are always sent as MTOM messages.
This issue has also been reported on the mailing list some time ago, but without any reply: http://markmail.org/message/n3mwpni26ej5tsj2