soap - What's the difference between MTOM and the attachment features provided by SAAJ? -


saaj: soap attachments api java

mtom: soap message transmission optimization mechanism

my simple understanding: deal soap attachments, mtom being more optimized version of saaj. correct?

are 2 different ways of doing same thing? or trying compare apples , oranges here?

can use saaj , mtom together?

it little bit more complicated. saaj old java api used manipulate soap envelopes, sending binary attachments can done in sane way (that not base64 encoded string in message body). saaj sort of low level interface, need construct soap envelope "by hand" in code , add attachments it.

if don't need work legacy code , want work directly soap envelopes, on jax-ws dispatcher , provider interfaces.

mtom beast. not full web service api - specialized way of sending attachments. can used "true" web service api jax-ws or saaj (if manage force saaj work way).

mtom (almost) used xop, more efficient way send binary data, compared base64 (which has large overhead). attachment sent separately mime attachment , mime type handled (that used issue java-microsoft technologies interactions).

nowdays forget saaj, use jax-ws + mtom support provided jax-ws implementations.


Comments

Popular posts from this blog

android - Why am I getting the message 'Youractivity.java is not an activity subclass or alias' -

python - How do I create a list index that loops through integers in another list -

c# - “System.Security.Cryptography.CryptographicException: Keyset does not exist” when reading private key from remote machine -