Return-Path: Mailing-List: contact axis-user-help@xml.apache.org; run by ezmlm Delivered-To: mailing list axis-user@xml.apache.org Received: (qmail 9469 invoked from network); 11 Apr 2002 13:57:13 -0000 Received: from natpost.webmailer.de (HELO post.webmailer.de) (192.67.198.65) by daedalus.apache.org with SMTP; 11 Apr 2002 13:57:13 -0000 Received: from tillwoern (pD95174BA.dip.t-dialin.net [217.81.116.186]) by post.webmailer.de (8.9.3/8.8.7) with ESMTP id PAA16400 for ; Thu, 11 Apr 2002 15:57:12 +0200 (MET DST) From: "Till Woerner" To: Subject: AW: Attachment contents access Date: Thu, 11 Apr 2002 15:56:19 +0200 Message-ID: <000701c1e160$a8954770$6564000a@tillwoern> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.3416 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N I now use Xerces-J 2.0.1 (seems to be the latest) Greetings, Till --=20 Caught in our narrowminded believe... ------------------------------------- Till Woerner Berlin, Germany EMail:till@twoerner.de ICQ#: 7162410 > -----Urspr=FCngliche Nachricht----- > Von: Hozefa Botee [mailto:hoze@interlacesystems.com] > Gesendet: Donnerstag, 11. April 2002 03:14 > An: till@twoerner.de > Betreff: RE: Attachment contents access >=20 >=20 > out of curiosity, which xerces are you now using? >=20 > H >=20 > > -----Original Message----- > > From: Till Woerner [mailto:till@twoerner.de] > > Sent: Wednesday, April 10, 2002 4:20 PM > > To: axis-user@xml.apache.org > > Subject: AW: Attachment contents access > >=20 > >=20 > > Thank you! > >=20 > > I finally figured out the problem with my larger file. I first=20 > > wondered why it worked on a machine with similar setup and I found=20 > > out that I did not have the right version of xerces in the classpath > > of the other system. It used the parser included in Java 1.4 (I=20 > > think) and that led to the socket write error (this was not the most > > helpful exception for me and did not give me any hint what was going > > wrong :-( ) > >=20 > > I do not know why it parsed the smaller file and part of the bigger=20 > > before the service died, but the misssing xerces was definitely the=20 > > source of problems... > >=20 > > Greetings, > > Till > >=20 > > -- > > Caught in our narrowminded believe... > > ------------------------------------- > > Till Woerner > > Berlin, Germany > > EMail:till@twoerner.de > > ICQ#: 7162410 > >=20 > > > -----Urspr=FCngliche Nachricht----- > > > Von: Taras Shkvarchuk [mailto:tarass@grandcentral.com] > > > Gesendet: Mittwoch, 10. April 2002 04:14 > > > An: 'axis-user@xml.apache.org' > > > Betreff: RE: Attachment contents access > > >=20 > > >=20 > > > I have not had any problems with even very large files, 50 meg > > > attachments worked fine for me. Could you explain when exactly do=20 > > > you get an error? What is the stacktrace? (if possible=20 > both client > > > and server side) > > >=20 > > > Just as a wild guess, there were a few problems with upload, and > > > large message sizes in mod_jk for Apache. If you are having older=20 > > > version of Apache handling your transport, you may want to get=20 > > > latest mod_jk module. > > >=20 > > > -Taras > > >=20 > > > > -----Original Message----- > > > > From: Till Woerner [mailto:till@twoerner.de] > > > > Sent: Tuesday, April 09, 2002 5:30 PM > > > > To: axis-user@xml.apache.org > > > > Subject: AW: Attachment contents access > > > >=20 > > > >=20 > > > > Thank!!! That worked! > > > >=20 > > > > But: Is there a size limit on attachments? On larger > files I get a > > > > SocketWrite exception on the server. The file I wanted to > > attach is > > > > about 300 KB... Smaller files work fine! > > > >=20 > > > > Greetings, > > > > Till > > > >=20 > > > > -- > > > > Caught in our narrowminded believe... > > > > ------------------------------------- > > > > Till Woerner > > > > Berlin, Germany > > > > EMail:till@twoerner.de > > > > ICQ#: 7162410 > > > >=20 > > > > > -----Urspr=FCngliche Nachricht----- > > > > > Von: Taras Shkvarchuk [mailto:tarass@grandcentral.com] > > > > > Gesendet: Montag, 8. April 2002 20:09 > > > > > An: 'axis-user@xml.apache.org' > > > > > Betreff: RE: Attachment contents access > > > > >=20 > > > > >=20 > > > > > Hope this helps, > > > > >=20 > > > > > Message res=3D mc.getResponseMessage(); > > > > > Attachments atts=3D res.getAttachments(); > > > > > System.out.println("\nAttchment count:"+ > > > > > atts.getAttachmentCount()); > > > > >=20 > > > > > Part > > atPart=3Datts.getAttachmentByReference("cid:large.dat"); //use > > > > > cid: OR > > > > > // Part=20 > > > atPart=3Datts.getAttachmentByReference("aLocationTag"); //use > > > > > Content-Location > > > > > DataHandler > > > > > atData=3DAttachmentUtils.getActiviationDataHandler(atPart); > > > > > InputStream in=3D atData.getInputStream(); > > > > > System.out.println("Available data in > > Att:"+in.available()); > > > > > //use input stream as usual > > > > >=20 > > > > > -Taras > > > > >=20 > > > > >=20 > > > > > > -----Original Message----- > > > > > > From: W=F6rner Till [mailto:Till.Woerner@t-systems.com] > > > > > > Sent: Monday, April 08, 2002 8:29 AM > > > > > > To: axis-user@xml.apache.org > > > > > > Subject: AW: Attachment contents access > > > > > >=20 > > > > > >=20 > > > > > > Thanks for your reply, but perhaps I did not describe > > > my problem > > > > > > clear enough... > > > > > >=20 > > > > > > I think what you send is how to add an attachment to > > a message, > > > > > > but I want to read the contents of an attachment and > > > write it to a > > > > > > file, for example. > > > > > >=20 > > > > > > This is my example: > > > > > > I get a message with an attachment which contains a > > > bunge of byte > > > > > > values on the client. All I want to do is is to read > > > the bytes and > > > > > > put them somewhere else. I am searching for a method like > > > > > > attachmentPart.getContent() or something like that, but > > > I cannot > > > > > > find anything like that. Perhaps I am > > > > > just blind??? > > > > > >=20 > > > > > > Greetings, > > > > > > Till > > > > > >=20 > > > > > >=20 > > > > > > > -----Urspr=FCngliche Nachricht----- > > > > > > > Von: Ramon Turnes [mailto:ramon.turnes-perez@hermes.si] > > > > > > > Gesendet: Montag, 8. April 2002 16:34 > > > > > > > An: 'axis-user@xml.apache.org' > > > > > > > Betreff: RE: Attachment contents access > > > > > > >=20 > > > > > > >=20 > > > > > > >=20 > > > > > > > Use this: > > > > > > >=20 > > > > > > > Message rsp =3D > > > > > > > MessageContext.getCurrentContext().getResponseMessage(); > > > > > > >=20 > > > > > > > try{ > > > > > > > org.apache.axis.attachments.Attachments > > > > attachments =3D > > > > > > > rsp.getAttachments(); > > > > > > > if(null =3D=3D attachments) > > > > > > > throw new RuntimeException("No support for > > > > > > > attachments"); > > > > > > >=20 > > > > > > > attachments.addAttachmentPart(ap); > > > > > > > }catch(org.apache.axis.AxisFault ex){ > > > > > > > throw new RuntimeException(ex.getMessage()); > > > > > > > } > > > > > > >=20 > > > > > > > Regards. > > > > > > >=20 > > > > > > > Ram=F3n. > > > > > > >=20 > > > > > > > > -----Original Message----- > > > > > > > > From: W=F6rner Till [mailto:Till.Woerner@t-systems.com] > > > > > > > > Sent: Monday, April 08, 2002 4:30 PM > > > > > > > > To: Axis User List (E-Mail) > > > > > > > > Subject: Attachment contents access > > > > > > > >=20 > > > > > > > >=20 > > > > > > > > Hello! > > > > > > > >=20 > > > > > > > > Does anyone have an example of how to access the > > > contents on > > > > > > > > an attachment if I have following line of code in > > my client: > > > > > > > >=20 > > > > > > > > ----- > > > > > > > > org.apache.axis.Message msg =3D > > > > > > > > call.getMessageContext().getResponseMessage(); > > > > > > > > ----- > > > > > > > >=20 > > > > > > > > How to access the attachment content of message msg??? > > > > > > > >=20 > > > > > > > > Thanks, > > > > > > > > Till > > > > > > > >=20 > > > > > > > >=20 > > > > > > > > -- > > > > > > > > T-Systems GEI GmbH > > > > > > > >=20 > > > > > > > > Hausanschrift: Eichhornstra=DFe 3, D-10785 Berlin > > > > > > > > Postanschrift: D-10875 Berlin > > > > > > > > Telefon: +49 (30) 2554 3254 > > > > > > > > E-Mail: Till.Woerner@t-systems.com > > > > > > > >=20 > > > > > > >=20 > > > > > >=20 > > > > >=20 > > > >=20 > > >=20 > >=20 >=20