You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Dario Di Minno <da...@yahoo.it> on 2004/04/16 15:43:45 UTC

delete an attachment after service invocation

I followed the instructions in the document "Fear of attachments" to 
write a client that sends an attachment.

   DataHandler dh = new DataHandler( new URL("file:///"+filename) 
);           
   server.addAttachment(dh);

After the invocation of the service I'd like the client to delete the 
file attached with:

attachedFile.delete();

but it always return false!

What's wrong in my class?

Thank you
Dario