Hi Andrei, 
Sure the service side does read attachments from the stream.
With smaller attachment this code works fine.

In response to another post - I got following input from Dan - reproducing
it here ( Dan I hope you don't mind ) 

        Daniel Kulp
        Jan 9 at 9:28 PM

To

 [email protected]
 [email protected]


On Jan 9, 2014, at 1:11 AM, [email protected] wrote:

> List -I am facing a similar problem and have made a post for this. Looking
> at
> this I would like to know if any of the users here were able to establish
> working MTOM with large attachments. I would hugely appreciate a working
> sample 

You could try modifying the mtom sample in the CXF kits to use a larger
attachment.  The samples is fairly small since it’s going in the kit, but
feel free to play with it and see if you can reproduce your issue.


- And I am able to reproduce the same issue with the samples as well  that
do MTOM perfectly well 





--
View this message in context: 
http://cxf.547215.n5.nabble.com/WSDL-first-MTOM-enabled-cxf-2-7-web-service-client-causes-Java-heap-space-error-for-large-attachments-tp5738387p5738431.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to