MTOM

MTOM(Message Transmission Optimization Mechanism),是W3C的MTOM的消息传输优化机制,有效地发送的二进制数据和从Web服务方法。将消息传输优化机制 (MTOM) 消息编码与WSHttpBinding 一起使用。MTOM是一种机制,用来以原始字节形式传输包含SOAP消息的较大二进制附件,从而使所传输的消息较小。

MIME-Version: 1.0
Content-Type: Multipart/Related;boundary=MIME_boundary;
type="application/xop+xml";
start="<Service.xml@book.org>";
start-info="text/xml"
Content-Description: An XML document with binary data in it
--MIME_boundary
Content-Type: application/xop+xml;
charset=UTF-8;
type="text/xml"
Content-Transfer-Encoding: 8bit
Content-ID: <Service.xml@book.org>
<env:Envelope xmlns:env="http://www.w3.org/2003/05/SOAP-envelope">
<env:Header>
</env:Header>
<env:Body>
<GetString xmlns="http://www.book.com/webservices">
<attachment><xop:Include xmlns:xop='http://www.w3.org/2004/08/xop/include'
href='cid:http://www.book.com/attachment.png/>
</attachment>
</<GetString>
</env:Body>
</env:Envelope>
-MIME_boundary
Content-Type: image/png
Content-Transfer-Encoding: binary
Content-ID:
<http://www.book.com/attachment.png>
D0CF11E0A1B11AE1000000000000000000000000000000003E000300FEFF090006000000000000000000000006000000DE0200000000000000100000FEFFFFFF00000000FEFFFFFF00000000D8020000D9020000DA020000DB020000DC020000DD020000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF

posted @ 2011-05-21 19:48  brainmao  阅读(4802)  评论(0编辑  收藏  举报