You may look at these two methods in Axis 1.x. org.apache.axis.attachments.AttachmentPart.setContentId(ID); // in client if uploading org.apache.axis.attachments.AttachmentPart.getContentId(ID); // in service if uploading
You can set/get the filename as a content ID. Tao -----Original Message----- From: Jarmo Doc [mailto:[EMAIL PROTECTED] Sent: Friday, January 06, 2006 8:06 AM To: [email protected] Subject: RE: Indicating filenames during file attach But AttachmentPart::setAttachmentFile(String path) is protected, not public. I'm getting the impression that I need to pass the original filenames of the attachments independently of the attachments themselves. >From: "Tootell, James" <[EMAIL PROTECTED]> >Reply-To: [email protected] >To: <[email protected]> >Subject: RE: Indicating filenames during file attach >Date: Thu, 5 Jan 2006 19:01:34 -0500 > >If you wrote the component that sends the attachment to the web service, >you should be able to specify the filename. In SAAJ, it looks like >setContent(Object object, String contentType) only attaches the file. >Calling setAttachmentFile(String path) should allow you to name the >attachment. "Axis102030.att" may just be some kind of default. > >HtH, >JT _________________________________________________________________ Is your PC infected? Get a FREE online computer virus scan from McAfee(r) Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
