1). Add "xmlmime.xsd" file into your project. (You can copy it from the attached project, filename: Service_MTOM.zip).
2). In your WSDL/schema, change the binary element type as follows. (Picture is the element for the sample project).
<xs:element ns1:expectedContentTypes="application/octet-stream" name="picture" minOccurs="0">
<xs:annotation>
<xs:documentation>Binary attachment e.g. a PDF or image.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:base64Binary">
<xs:attribute ref="ns1:contentType"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
3). After the above change, you will be able to see the contentType. (See attached filename: content-type.png)
4). Fill the value with your preferred content type value.
5). Run the project and you can see changed content type (See attached filename: tcp_trace.png).
6). The same can be done at the client side (soaprequestreply).