aspose file tools
The moose likes Web Services and the fly likes Enabling MTOM when using SAAJ Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "Enabling MTOM when using SAAJ" Watch "Enabling MTOM when using SAAJ" New topic
Author

Enabling MTOM when using SAAJ

Anirvan Majumdar
Ranch Hand

Joined: Feb 22, 2005
Posts: 261
Hello,

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].

thanks
anas alsarairah
Greenhorn

Joined: Sep 27, 2007
Posts: 27
hello
i am looking for the same answer . so please share it if you already know it .

thanks in advance
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Enabling MTOM when using SAAJ
 
Similar Threads
dumb question regarding when to use SAAJ
Soap With Attachment Axis Fault
soap payload max size and http post
Does MTOM support SOAP 1.2?
Adding attachments to web service response