1

I wonder what are the main benefits of using a WS with MTOM. (without streaming the attachment)

I understand that the payload will not contain the binary data which will be part of MIME

"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"

SO the payload will probably smaller (but not much ) then base64 format

BUT without using streaming attachment i see little advantage... the payload will end up in memory anyway as soap is deserialized.

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

Am i wrong ?

4

1 回答 1

1

改用 MTOM 有几个原因:

  • MTOM 具有良好的互操作性。MTOM 是W3C 建议,得到 Microsoft、IBM、Oracle 等的认可。

  • Web 服务功能可以根据需要处理 MTOM 附件。附件的临时 Base64 表示允许 SOAP 引擎使用它们来生成消息签名、执行加密等。

  • MTOM 对开发没有影响。没有用于处理 SOAP 附件的特殊 API。

于 2013-01-25T13:54:12.320 回答