//Store the data handler in ImageDepot bean
ImageDepot imageDepot = new ObjectFactory().createImageDepot();
imageDepot.setImageData(dataHandler);
SendImage request = new ObjectFactory().createSendImage();
request.setInput(imageDepot);
//Create the necessary JAXBContext
JAXBContext jbc = JAXBContext.newInstance("org.test.mtom");
// Create the JAX-WS client needed to send the request with soap 11 binding