I have created a web service which returns a file as binary data to the client. It was working without any problem until I changed <parameter name="enableMTOM">false</parameter> in axis2.xml to be true, to enable sending the binary data using mtom. Now, I receive an error which says: SOAP 1.2 fault: SOAP-ENV:Sender[no subcode] "End of file or no input: Operation interrupted or timed out" Detail: [no detail] I have no idea what the problem could be.