Definitely try with CXF 2.2.6 if you are not already using 2.2.6.   We've made 
a lot of improvements in attachment handling in the last couple versions to 
make them faster and more memory efficient.   

If it's still an issue, is there any way a small test case could be provided.   
I know we have tests that test echoing of attachments of around that size so 
it should be OK.

Dan


On Tue January 26 2010 4:11:06 pm Brenda Coulson wrote:
> I have scoured the discussion forums, tried multiple attempts to understand
> why this is happening all to no avail. I have a CXF Client that invokes a
> method on my web service that should have a SOAP attachment. The attachment
> can either be an XML file or a ZIP file. The WSDL defines the attachment as
> having type application/octet-stream.
> 
> Everything works fine for zip, gzip or text/xml files up to a certain size.
> When I try to submit a xml file that is 4.5 MB in size, the file is
>  actually truncated before it is sent to the server. So when the server
>  receives the file, it complains, rightly so, of a "Premature End Of File"
>  error.
> 
> Does anyone have any suggestions on what could be causing this truncation?
> 
> Regards
> Brenda
> 

-- 
Daniel Kulp
[email protected]
http://www.dankulp.com/blog

Reply via email to