I have a webservice endpoint which I annotated with MTOM and I have this web method:
public @XmlMimeType("application/octet-stream") DataHandler binaryTest();
and I have these lines the wsdl:
<xs:complexType name="binaryTestResponse">
</xs:sequence>
</xs:complexType>
The request is sent with these headers:
Content-Type: multipart/related; type="application/xop+xml"; start="<rootpart@soapui.org>"; start-info="text/xml"; boundary="----=_Part_452_1354325.1354355599999"
MIME-Version: 1.0
But I get this response:
<env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'><env:Header></env:Header><env:Body><ns2:binaryTestResponse xmlns:ns2="http://blablabla/"><return> AAAAAAAAAAAAAA ....
How to force jboss to respect MTOM?
Thanks