Hi

Can you try to use the latest released CXF 2.3.6 ?
If I remember right, there are some soap with attachment bug fixings recently.

On Thu Aug 25 02:10:59 2011, robbywillz wrote:
Hi,

When my CXF client receives big attachment, the DataHandler object returns
the empty content. But similarly for second attachment which is small in
size, the DataHandler has the content(not empty).
I'm using Apache CXF 2.3.3 version and my client runs on the web server
based on given cxf-servlet.xml.
Please find attached cxf-servlet.xml.
http://cxf.547215.n5.nabble.com/file/n4731317/cxf-servlet.xml
cxf-servlet.xml

As part of the SOAP request I received the attachment, but when I try to get
it from DataHandler it is returning empty. Could you please any one help me?

------=_Part_0_1668899705.1314194195164
Content-Type: text/xml; charset=utf-8

<SOAP-ENV:Envelope
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/";
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:ne3scommon="http://www.nokiasiemens.com/ne3s/1.0";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><SOAP-ENV:Header/><SOAP-ENV:Body><ne3scommon:reportOperationStatus><ne3scommon:agentRegistrationId>512245000000000096</ne3scommon:agentRegistrationId><ne3scommon:agentRegistrationKey>EStYELj0xNNnf5nI1BCmEfUckiX86JzGHYTnyr7kPpVhhKwkMPvsiVLLwgiix+rPxc4Mf5JkM236CZLpRvND+w==</ne3scommon:agentRegistrationKey><ne3scommon:operationId>9714</ne3scommon:operationId><ne3scommon:completed>false</ne3scommon:completed><ne3scommon:pageSequenceNumber>1</ne3scommon:pageSequenceNumber><ne3scommon:attachmentProperties><ne3scommon:compression>none</ne3scommon:compression><ne3scommon:contentType>ocos</ne3scommon:contentType><ne3scommon:checksum><ne3scommon:algorithm>none</ne3scommon:algorithm></ne3scommon:checksum></ne3scommon:attachmentProperties><ne3scommon:operationStatusContent>cid:temp</ne3scommon:operationStatusContent></ne3scommon:reportOperationStatus></SOAP-ENV:Body></SOAP-ENV:Envelope>
------=_Part_0_1668899705.1314194195164
Content-Type: text/xml
Content-ID:<temp>
Content-Transfer-Encoding: 7bit

<?xml version="1.0" encoding="UTF-8"?>
......... has big content......



-----
Regards,
William Rovinson
--
View this message in context: 
http://cxf.547215.n5.nabble.com/DataHandler-is-empty-tp4731317p4731317.html
Sent from the cxf-user mailing list archive at Nabble.com.


--
Willem
----------------------------------
FuseSource
Web: http://www.fusesource.com
Blog:    http://willemjiang.blogspot.com (English)
         http://jnn.javaeye.com (Chinese)
Twitter: willemjiang
Weibo: willemjiang

Reply via email to