Please check this out. A better way to sending files as attachments with the SOAP message is MTOM, an spec implemented by Axis2. Read this for more on how to use MTOM with Axis2.
Thnks for the hint... But I dont grasp the examples... I just want to upload simple text file and not an image. moreover, i think the examples are not really complete...
maybe you can give me some complede code for the client (which uploads a file) and the server (which receives the file)?