Are you sure?There may be something wrong!It get null. 

I find the client code really not add the Content-disposition header in
request: 
Holder<DataHandler> handler = new Holder<DataHandler>(); 
handler.value = new DataHandler(fileURL); 
port.testDataHandler(name, handler); 

Then,although I set this header,I still get null from DataHandler.getName()
method: 
Content-Transfer-Encoding: binary 
Content-ID: <777fb969-f57d-41fc-8aff-51f37503efcd> 
content-disposition: attachment; name="adapter.txt" 

Is this a bug? 



--
View this message in context: 
http://cxf.547215.n5.nabble.com/how-to-get-the-attachement-filename-from-DataHandler-tp5720791p5720795.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to