0 Replies Latest reply on Oct 4, 2011 2:07 PM by boot sector

    How to enable MTOM ?

    boot sector Newbie

      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:element xmlns:ns1="http://www.w3.org/2005/05/xmlmime" minOccurs="0" name="return"ns1:expectedContentTypes="application/octet-stream" type="xs:base64Binary"/>

       

      </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