<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" 
           xmlns:tns="http://schemas.xmlsoap.org/2003/04/xmime" 
           targetNamespace="http://schemas.xmlsoap.org/2003/04/xmime" >

  <xs:attribute name="MediaType" >
    <xs:simpleType>
      <xs:restriction base="xs:string" >
      <xs:pattern value="(text|application|image|audio|video|model|multipart|message|x-[-.a-z0-9]+)/[a-z0-9][-.+a-z0-9]+(;\s?.+=.+)*" />
      </xs:restriction>
    </xs:simpleType>
  </xs:attribute>

  <xs:attribute name="Accept" >
    <xs:simpleType>
      <xs:restriction base="xs:string" >
        <xs:pattern value="(text|application|image|audio|video|model|multipart|message|x-[-.a-z0-9]+)/[a-z0-9][-.+a-z0-9]+(;p=(1\.0|0\.\d+))?" />
      </xs:restriction>
    </xs:simpleType>
  </xs:attribute>

  <xs:complexType name="Binary" >
    <xs:simpleContent>
      <xs:extension base="xs:base64Binary" >
        <xs:attribute ref="tns:MediaType" use="optional" />
        <xs:anyAttribute namespace="##any" processContents="lax" />
      </xs:extension>
    </xs:simpleContent>
  </xs:complexType>

</xs:schema>
