You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Brenda Coulson <br...@dystech.com> on 2010/01/26 22:11:06 UTC

Large SOAP Attachment getting truncated using JAX-WS

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
-- 
View this message in context: http://old.nabble.com/Large-SOAP-Attachment-getting-truncated-using-JAX-WS-tp27329816p27329816.html
Sent from the cxf-user mailing list archive at Nabble.com.


Re: Large SOAP Attachment getting truncated using JAX-WS

Posted by Christian Schneider <ch...@die-schneider.net>.
If I remember correctly we had a problem with truncated request when 
using the logging feature. If you use it you could try to deactivate the 
feature.

Greetings

Christian


Am 26.01.2010 22:11, schrieb Brenda Coulson:
> 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
>    


-- 

Christian Schneider
---
http://www.liquid-reality.de


Re: Large SOAP Attachment getting truncated using JAX-WS

Posted by Brenda Coulson <br...@dystech.com>.
The upgrade worked - I can now submit my file successfully.


Brenda Coulson wrote:
> 
> Thanks for the quick reply. I am in the process of upgrading to CXF 2.2.6
> and will let you know if that corrects the problem. I did turn off logging
> but that did not change the behavior.
> 
> 
> dkulp wrote:
>> 
>> 
>> 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
>> dkulp@apache.org
>> http://www.dankulp.com/blog
>> 
>> 
> 
> 

-- 
View this message in context: http://old.nabble.com/Large-SOAP-Attachment-getting-truncated-using-JAX-WS-tp27329816p27344645.html
Sent from the cxf-user mailing list archive at Nabble.com.


Re: Large SOAP Attachment getting truncated using JAX-WS

Posted by Brenda Coulson <br...@dystech.com>.
Thanks for the quick reply. I am in the process of upgrading to CXF 2.2.6 and
will let you know if that corrects the problem. I did turn off logging but
that did not change the behavior.


dkulp wrote:
> 
> 
> 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
> dkulp@apache.org
> http://www.dankulp.com/blog
> 
> 

-- 
View this message in context: http://old.nabble.com/Large-SOAP-Attachment-getting-truncated-using-JAX-WS-tp27329816p27344114.html
Sent from the cxf-user mailing list archive at Nabble.com.


Re: Large SOAP Attachment getting truncated using JAX-WS

Posted by Daniel Kulp <dk...@apache.org>.
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
dkulp@apache.org
http://www.dankulp.com/blog