Use this:
Message rsp = MessageContext.getCurrentContext().getResponseMessage(); try{ org.apache.axis.attachments.Attachments attachments = rsp.getAttachments(); if(null == attachments) throw new RuntimeException("No support for attachments"); attachments.addAttachmentPart(ap); }catch(org.apache.axis.AxisFault ex){ throw new RuntimeException(ex.getMessage()); } Regards. Ramón. > -----Original Message----- > From: Wörner Till [mailto:[EMAIL PROTECTED]] > Sent: Monday, April 08, 2002 4:30 PM > To: Axis User List (E-Mail) > Subject: Attachment contents access > > > Hello! > > Does anyone have an example of how to access the contents on > an attachment if I have following line of code in my client: > > ----- > org.apache.axis.Message msg = > call.getMessageContext().getResponseMessage(); > ----- > > How to access the attachment content of message msg??? > > Thanks, > Till > > > -- > T-Systems GEI GmbH > > Hausanschrift: Eichhornstraße 3, D-10785 Berlin > Postanschrift: D-10875 Berlin > Telefon: +49 (30) 2554 3254 > E-Mail: [EMAIL PROTECTED] >