Can someone please add this to Wiki?
(http://nagoya.apache.org/wiki/apachewiki.cgi?AxisProjectPages)

Thanks,
dims

--- [EMAIL PROTECTED] wrote:
> 
> 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("completeFilePath
> WherYouWantTheFileWrittenTo"));
> or force Axis to generate the temp file and move it around your file
> system:
>       new java.io.File(dh.getName()).renameTo(TheFileYouReallyWant);
> 
> =============================================
> Marcelo Jaccoud Amaral
> mailto:jaccoud [at] petrobras.com.br
> voice: +55 21 2534-3485
> fax: +55 21 2534-1809
> =============================================
> There are only 10 kinds of people in the world: those who understand binary
> and those who don't.
> 
> 
> 
> 
> 
> I have one question about this topic. Is there any way I can change the
> file where Axis will write the attachment. I mean, I don't want Axis to
> write in /tmp (I'm using linux) but in a user's home directory (let's say
> /home/javi/tmp).
> Thanks all,
> Javi
> 
> 
> 
> 
> 
> 
> 
> 


=====
Davanum Srinivas - http://webservices.apache.org/~dims/

__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

Reply via email to