Q: How do I specify where attachments are written?

A: Just write the output yourself, for example:

   Iterator       iterator = call.getResponseMessage().getAttachments(); 
   AttachmentPart part     = (AttachmentPart) iterator.next(); 
   DataHandler    dh       = part.getDataHandler(); 

   dh.writeTo(new java.io.FileOutputStream("completeFilePathWhereYouWantTheFileWrittenTo")); 

or force Axis to generate the temp file and move it around your file system:

    new java.io.File(dh.getName()).renameTo("TheFileYouReallyWant"); 

FrontPage/Axis/AttachmentsSpecifyFilename (last edited 2009-09-20 22:47:37 by localhost)