This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I've been working on a SAAJ-based client, and am almost done except for the handling of attachment. What i've managed to figure out is that the attachment data does get appended to the SOAP message, but the structure is NOT conforming to the MTOM specs. By intercepting the HTTP request, I was able to see that the entire request body's content-type is set to 'text/xml'. as per the MTOM specs, this should 'application/xop+xml'. Is there any specific way to enable MTOM for dispatching SOAP requests using SAAJ's SOAPConnection object?
Something like the way we can do so using Apache Axiom's 'Options' instance. [i can't use axiom migrating to a third party library is not an option at this point of development].