Optimized Content


MIME-Version: 1.0
Content-Type: Multipart/Related; boundary=example-boundary; 
  type=application/xop+xml; 
  start="<itinerary123.xml@travelcompany.example.org>";
  startinfo="application/soap+xml;action=\"http://travelcompany.example.org/Process\""
Content-Description: This is an example of an optimized SOAP message

--example-boundary
Content-Type: application/xop+xml; charset=UTF-8
type="application/soap+xml;action=\"http://travelcompany.example.org/Process\""
Content-Transfer-Encoding: 8bit
Content-ID: <itinerary123.xml@travelcompany.example.org>

<?xml version='1.0'?>
<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope" 
     xmlns:xmlmime='http://www.w3.org/2004/06/xmlmime'> 
 <env:Header>
  <m:reservation xmlns:m="http://travelcompany.example.org/reservation" 
          env:role="http://www.w3.org/2003/05/soap-envelope/role/next"
           env:mustUnderstand="true">
   :::
  </m:reservation>
  <n:passenger xmlns:n="http://mycompany.example.com/employees"
          env:role="http://www.w3.org/2003/05/soap-envelope/role/next"
           env:mustUnderstand="true">
   :::
  </n:passenger>
 </env:Header>
 <env:Body>
  <o:travelAgencyLogo xmlns:o="http://travelcompany.example.org/images"
    xmlmime:contentType='image/jpg'><xop:Include xmlns:xop='http://www.w3.org/2003/12/xop/include' 
      href="cid:logo.gif@travelcompany.example.org"/></o:travelAgencyLogo>
  <p:itinerary
    xmlns:p="http://travelcompany.example.org/reservation/travel">
   <p:departure>
     :::
   </p:departure>
   <p:return>     
     :::
   </p:return>
  </p:itinerary>
  <q:lodging
   xmlns:q="http://travelcompany.example.org/reservation/hotels">
   <hotel> 
    :::
   </hotel>
   <r:areaMap xmlns:r="http://travelcompany.example.org/maps" 
      xmlmime:contentType="image/jpg"><xop:Include xmlns:xop='http://www.w3.org/2003/12/xop/include' 
         href="cid:map123.jpg@travelcompany.example.org"/></r:areaMap>
  </q:lodging>
 </env:Body>
</env:Envelope>

--example-boundary
Content-Type: image/jpg
Content-Transfer-Encoding: binary
Content-ID: <logo.gif@travelcompany.example.org>

::: the binary data :::

--example-boundary
Content-Type: image/jpg
Content-Transfer-Encoding: binary
Content-ID: <map123.jpg@travelcompany.example.org>

::: the binary data :::

--example-boundary--