It doesn't work in 1.1 but it does in 1.2. Just in case, I'm getting the file name from the data handler and deleting the file from there.
Best Regards, Paulo Soares > -----Original Message----- > From: Dario Di Minno [mailto:[EMAIL PROTECTED] > Sent: Friday, April 16, 2004 2:44 PM > To: [EMAIL PROTECTED] > Subject: 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 > > >
