File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes Does MTOM support SOAP 1.2? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Does MTOM support SOAP 1.2?" Watch "Does MTOM support SOAP 1.2?" New topic
Author

Does MTOM support SOAP 1.2?

Ravi Danum
Ranch Hand

Joined: Jan 13, 2009
Posts: 104
Hello,

Does MTOM support the SOAP 1.2 specification, specifically the SOAP 1.2 Attachment Feature?

Would you say that MTOM is an implementation of the SOAP 1.2 Attachment Feature?

Would you say that SAAJ is an implementation of the SOAP 1.2 Attachment Feature?

Thank you for any light in this area.

Ravi
Pavel Cherkashin
Ranch Hand

Joined: Mar 04, 2005
Posts: 47
tried to send you the reference to one very usable site but got message:

Sorry, your post contained a reference to a company or website that publishes real test questions - a practice we do not approve of here at JavaRanch. We have banned all discussion of the websites which do this, because even the knowledge of the names of such websites seems to encourage others to use the website to cheat. If you were attempting to discuss this website for any other reason, we apologize for the inconvenience.



If you need it, give me email, I will send you. As for me, this resource is too nice and that is the reason it is banned.


Pavel Cherkashin - <br />SCJP, SCWCD, SCDJWS, SCBCD, SCEA, ...<br />www.linkedin.com/in/pcherkas
Ravi Danum
Ranch Hand

Joined: Jan 13, 2009
Posts: 104
I asked this to aid me in a work task, not for a test.
Peer Reynders
Bartender

Joined: Aug 19, 2005
Posts: 2922
    
    5
SOAP 1.2 Attachment Feature W3C Working Group Note 8 June 2004
This document is the work of the W3C XML Protocol Working Group (WG). The Attachment Feature document has been superceded by the SOAP Message Transmission Optimization Mechanism document which describes attachment related features along with some implementation details. The XMLP WG does not intend to do any further work on the Attachment Feature document.


Basically forget that the SOAP 1.2 Attachment Feature ever existed - MTOM is the Attachment Specification of choice for SOAP 1.2 (which isn't that widely used).

SAAJ 1.3 supports SOAP 1.1 and SOAP 1.2. But to my knowledge it only ever supported SOAP Messages with Attachments (SwA) and the WS-I Attachments Profile Version 1.0 (according to the SAAJ 1.3 specification (JSR-67 Maintenance Release 3)) - explicit MTOM support is not mandatory for SAAJ 1.3.

Now Understanding MTOM claims:
MTOM messages are valid SWA messages

but I think that this is somewhat misleading as this probably means that a SwA API will let you get at the attachment content but that you still have to do all the MTOM/XOP related processing yourself to restore the original content.
Ravi Danum
Ranch Hand

Joined: Jan 13, 2009
Posts: 104
Thanks, Peer. It looks like MTOM it is then. This is good because Glassfish (which I am using) supports MTOM. Now I just have to get an example working.

Your help is greatly appreciated!

Ravi
Peer Reynders
Bartender

Joined: Aug 19, 2005
Posts: 2922
    
    5
Ravi Danum wrote:It looks like MTOM it is then.


Just as long as your prospective consumers support it. Just because your implementation environment supports it doesn't automatically imply that your consumers will be able to use it. While MTOM is an open standard, use of MTOM in your web service contract does impose a certain amount of (negative) contract-to-technology coupling on your consumer because MTOM isn't universally supported by all SOAP client stacks (none of the attachment technologies are). The same is true for SOAP 1.2 - SOAP 1.1 seems to be the one that is predominantly used and some development environments don't seem to be in any hurry to move to the "next generation" of SOAP (possibly because they are taking the "wait-and-see" approach to determine whether SOAP adoption has peaked).
Ravi Danum
Ranch Hand

Joined: Jan 13, 2009
Posts: 104
Thanks, Peer. This is a good point to keep in mind.

Ravi
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Does MTOM support SOAP 1.2?