Hi, This is a known issue and already get fixed by CXF-4420[1], CXF 2.6.2 have this fix, so please upgrade your CXF version.
[1]https://issues.apache.org/jira/browse/CXF-4420 ------------- Freeman(Yue) Fang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://fusesource.com | http://www.redhat.com/ Twitter: freemanfang Blog: http://freemanfang.blogspot.com http://blog.sina.com.cn/u/1473905042 weibo: @Freeman小屋 On 2012-12-26, at 上午10:50, chengy@action wrote: > 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.
