Return-Path: Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 30411 invoked by uid 500); 9 Jul 2003 05:27:42 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 30392 invoked from network); 9 Jul 2003 05:27:42 -0000 Message-ID: <005501c345da$e4f7fbb0$f878c2d4@pge> Reply-To: "Philippe GENESTE" From: "Philippe GENESTE" To: References: <39355.165.21.154.12.1057717913.squirrel@www.wahlao.com> <21535.165.21.154.15.1057719311.squirrel@www.wahlao.com> Subject: help !!! DIME attachments problems Date: Wed, 9 Jul 2003 07:28:13 +0200 Organization: *** MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hello, Sorry i'm new on SOAP with attachments !!! I try to download file from Server (AXIS) on client (Gsoap) via a web service. I have a problem to retrieve files on client side (problem in GSOAP soap_lookup_type function) Perhaps someone can tell me what is wrong in my implementation. Here my server side code (i send in response the received request): public Element test(Element xmlRequest) throws org.apache.axis.AxisFault,java.io.IOException, org.xml.sax.SAXException,java.awt.datatransfer.UnsupportedFlavorExcept ion,javax.xml.parsers.ParserConfigurationException, java.lang.ClassNotFoundException,javax.xml.soap.SOAPException { //force to do a DIME transfer Message rspmsg = AxisEngine.getCurrentMessageContext ().getResponseMessage(); rspmsg..getAttachmentsImpl().setSendType (org.apache.axis.attachments.Attachments.SEND_TYPE_DIME); AttachmentPart replyPart= new org.apache.axis.attachments.AttachmentPart( new DataHandler(new FileDataSource ("c:\\test\\test1.zip"))); replyPart.setContentId("xaoTransfert_toto63"); rspmsg.addAttachmentPart(replyPart); replyPart= new org.apache.axis.attachments.AttachmentPart( new DataHandler(new FileDataSource ("c:\\test\\test2.zip"))); replyPart.setContentId("xaoTransfert_toto64"); rspmsg.addAttachmentPart(replyPart); return xmlRequest; } Here's my deployment file for server Here's the request (and response in test) Here is a test I supposed i make a mistake somewhere in references or something like that because on client side, i don't retrieve anything in iht table. How to add reference id of DIME attachment in my XML response (or in another place. Thanks in advance for your help Philippe