Hi There, I was successfully able to write an independent web service with a client to test where the attachments' file name is passed as parameter in the web service method. Based on the lines of http://thilinag.blogspot.com/2008/04/download-file-from-axis2-web-service.html
But My requirement in real world is that my web service may or may not have the attachments [0 or many attachments]. And my web service method should be able to support all the scenarios There are obvious two ways of doing it: * Add the array of attachment filenames in the webservice method signature and send it using MTOM (based on the arcticle above ) * Or send the attachments internal to soap message using data handlers using SwA (Can we do the same thing and say enableMTOM=true?) based on this article http://wso2.org/library/1148 When using method 1, how do we handle the array of Strings to send to the client, I want to use handwritten client so I am using OMElement fileNamesArray = BeanUtil.getOMElement(new QName(omNs.getNamespaceURI(),"attchFileNames"), filenames, null, false, null); But this does not get me the datasource for the file in the webservice. When using method 2 and I access the datahandler from messageContext obtained using getCurrentMessageContext, my data handlers are empty. So I am not able to achieve the solution to transfer the file from client to webservice by either of the ways. Help is really appreciated as I am completely stuck! Thanks in advance, Asmita
