title: Advantages of using MTOM with XOP
body: <p>I wonder what are the main benefits of using a WS with MTOM. (without streaming the attachment)</p>
  
  <p>I understand that the payload will not contain the binary data which will be part of MIME </p>
  
  <p>"When you use MTOM/XOP to optimize a SOAP message, the XOP processing serializes it into a MIME Multipart/Related message. The XOP processing extracts the base64Binary data from the SOAP message and packages it as separate binary attachments within the MIME message, in a similar manner to e-mail attachments"</p>
  
  <p>SO the payload will probably smaller (but not much ) then base64 format</p>
  
  <p>BUT without using streaming attachment i see little advantage... the payload will end up in memory anyway as soap is deserialized.</p>
  
  <p>So if the SOAP has to contain a big PDF file which i have to store it ... with pure MTOM there will be not so much benefit if i will not use streaming attachment cause multiple users in the same time might crash the server with OOME...</p>
  
  <p>Am i wrong ?</p>