Listing 1 Sample SOAP message for ?WS-Attachments/Dime

POST /CheckService HTTP/1.0
Content-Type: application/dime
SOAPAction: " http://example.com/soapaction "
Content-Length: 143616

[][][][][]\uuid:714C6C40-4531-442E-A498-3AC614200295[][][][]http://schemas.xmlsoap.org/soap/envelope/[][][][][]<?xml
 version="1.0" encoding="UTF-8"?>
   <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <soapenv:Body>
         <Detail xmlns="http://example.org/mtom/data">
            <CheckDetail>myBank</CheckDetail>
         </Detail>
      </soapenv:Body>
   </soapenv:Envelope>[][][][][]cid:1193909448545@myDomain.com[][][][][]image/jpeg[][][]abcdefghijklmonpqrstuvwxyz[][]
[][]2006:12:08 23:02:09
[][][][][]cid:1193909123545@myDomain.com[][][][][]image/jpeg[][][]abcdefghijklmonpqrstuvwxyz [][][][]2006:12:08
 23:02:09
[][][][][]cid:1193909111545@myDomain.com[][][][][]image/jpeg[][][]abcdefghijklmonpqrstuvwxyz

Listing 2 Sample SOAP message for by ?Attachment Profile 1.0

POST /services/CheckService HTTP/1.0
Content-Type: multipart/related; type="text/xml"; start="<8A10B726CF88C59402909EA21095BFB3>";	boundary=--MIME_boundary
SOAPAction: "http://example.com/soapaction"
Content-Length: 142549

--MIME_boundary 
Content-Type: text/xml; charset=UTF-8
Content-Transfer-Encoding: binary
Content-Id: <8A10B726CF88C59402909EA21095BFB3>
   <?xml version="1.0" encoding="UTF-8"?>
      <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
	   xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
         <soapenv:Body>
            <check xmlns="http://example.com/mytypes">
               <checkDetail>myBank</checkDetail>
               <frontImage>cid:frontImage=1193908029165@myDomain.com</frontImage>
               <backImage>cid:backImage=1193908029165@myDomain.com</backImage>
               <greyImage sref="cid:greyImage=1193908029165@myDomain.com"/>
            </check>
         </soapenv:Body>
      </soapenv:Envelope>

--MIME_boundary
Content-Type: image/jpgContent-Transfer-Encoding: binary
Content-Id: <cid:frontImage=1193908029165@myDomain.com>
....binary image....
--MIME_boundary
Content-Type: image/jpgContent-Transfer-Encoding: binary
Content-Id: <cid:backImage=1193908029165@myDomain.com>
....binary image....
--MIME_boundary
Content-Type: image/jpgContent-Transfer-Encoding: binary
Content-Id: <cid:greyImage=1193908029165@myDomain.com>
....binary image....
--MIME_boundary

Listing 3 Sample SOAP message for MTOM

POST /CheckService HTTP/1.0
Content-Type: multipart/related;type="application/xop+xml"; start="<4DDB770EA58256BC4831FC317AB2A263>"; start-info="text/xml; charset=utf-8"; 	boundary=--MIME_boundary
SOAPAction: " http://example.com/soapaction "
Content-Length: 143016

--MIME_boundary 
Content-Type: application/xop+xml; charset=utf-8; type="text/xml; charset=utf-8"
Content-Transfer-Encoding: binary
Content-Id: <4DDB770EA58256BC4831FC317AB2A263>
   <?xml version="1.0" encoding="UTF-8"?>
      <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope"
	   xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
         <soapenv:Body>
            <Detail xmlns="http://example.org/mtom/data">
               <CheckDetail>myBank</CheckDetail>
               <frontImage ns0:contentType="image/jpg" xmlns:ns0="http://www.w3.org/2005/05/xmlmime">
                  <Include href="cid:frontImage=1193908940782@myDomain.com"
				   xmlns="http://www.w3.org/2004/08/xop/include"/>
               </frontImage>
               <backImage ns0:contentType="image/jpg" xmlns:ns0="http://www.w3.org/2005/05/xmlmime">
                  <Include href="cid:backImage=1193908940782@myDomain.com"
				   xmlns="http://www.w3.org/2004/08/xop/include"/>
               </backImage>
               <greyImage ns0:contentType="image/jpg" xmlns:ns0="http://www.w3.org/2005/05/xmlmime">
                  <Include href="cid:greyImage=1193908940782@myDomain.com"
				   xmlns="http://www.w3.org/2004/08/xop/include"/>
               </greyImage>
            </Detail>
         </soapenv:Body>
      </soapenv:Envelope>
--MIME_boundary
Content-Type: image/jpgContent-Transfer-Encoding: binary
Content-Id: <cid:frontImage=1193908940782@myDomain.com>
.....binary.....
--MIME_boundary
Content-Type: image/jpgContent-Transfer-Encoding: binary
Content-Id: <cid:backImage=1193908940782@myDomain.com>
.....binary....
--MIME_boundary
Content-Type: image/jpgContent-Transfer-Encoding: binary
Content-Id: <cid:greyImage=1193908940782@myDomain.com>
.....binary.....
--MIME_boundary