0 Replies Latest reply on Sep 26, 2013 10:35 AM by pat0675

    JAX-WS JBoss 7.1.1 MTOM. Enabling MTOM support on client side....

    pat0675

      Hi,

       

      i ve got a webservice war running on JBoss 7.1.1 and a apropriate client genereated from the WSDL via wsimport.

      I am able to upload large files when enabling MTOM programmatically. But if I only use wsimport without looking to enable MTOM, and I try

      a large upload, this will end in a OutOfMemory Exception.

      So my question is, is it possible to turn on the MTOM support on client side automatically, or via the WSDL. Or is there any way, that the

      attachement will be automatically converted as a SOAP attachement instead of inline?

       

      This is the part of my WSDL which contains the DataHandler.

       

      <xs:complexType name="uploadFile">

       

      <xs:sequence>

       

       

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

       

      <xs:element minOccurs="0" name="arg1" type="xs:string"/>

      </xs:sequence>

      </xs:complexType>


      Thanks in advance.


      Patrick