Hi, If it's MTOM, you actually needn't do anything for the attachment receiver side, the AttachmentInInterceptor which is responsible for extract attachments will always be added automatically if you're using soap binding. And on the client side you should be grasp the DataHandler(as return type or the Holder parameter) which you can read the attachment from the Datasource/Inputstream. ------------- 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 2013-1-4, at 上午9:33, Born ToWin wrote: > Hi, > > I am facing a problem with EXTRACTING attachment at CXF Client. My CXF > service would send an attachment as response to its CXF client. > > 1) how do i consume web services with attachments in CXF? > 2) what are the changes/configuration that i need to do at CXF Client? > 3) what are the CXF interceptors that i need to configure at CXF client to > extract the attachments? > > Thanks in advance.
