CXF MTOM DATA BINDING
Upload attachment (document) using CXF ( MTOM ) Spring and Tomcat Incase you have any difficulty in setup please contact us . Let us now create a resume upload web service using Apache CXF, Spring and Tomcat and consume it. The web service will be used to upload an attachment [resume]. The scenario considered here is a candidate uploading his/her resume and the resume [word document] is retrieved and stored on the server. The following files are involved in the demo of the tutorial. Download the files (zip format) Resume.java This DTO (value object) represents the resume of a candidate. ResumeUploadService.java This interface has uploadResume method which accepts a Resume. ResumeUploadServiceImpl.java Implementation class for ResumeUploadService.java Client.java Code which consumes the web service. cxf.xml Informs Spring [which is referenced from CXF] about the related Java classes for a given web service. Before getting into the details of the above files ...