Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 45541 invoked from network); 19 Jul 2006 18:55:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 19 Jul 2006 18:55:47 -0000 Received: (qmail 90815 invoked by uid 500); 19 Jul 2006 18:55:38 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 90795 invoked by uid 500); 19 Jul 2006 18:55:38 -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: List-Id: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 90781 invoked by uid 99); 19 Jul 2006 18:55:38 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Jul 2006 11:55:38 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of gazateer@gmail.com designates 64.233.166.181 as permitted sender) Received: from [64.233.166.181] (HELO py-out-1112.google.com) (64.233.166.181) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Jul 2006 11:55:36 -0700 Received: by py-out-1112.google.com with SMTP id c30so403754pyc for ; Wed, 19 Jul 2006 11:55:15 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=TbEZbLqwaJn4iE1eO0mKeQsZ8mLPKShdV9c3e2CpIiS88Q7gwtBK7EqvRc9E03toXD6XqVYXoBMVTijL4mnadey9xAW/QN3TNRZknc9/QQTCJS7YFEuWl27GEMoD40GKOLeADLlJAktB37vNaWj950lw36vtk/yDNbVZwOJtbSk= Received: by 10.35.19.6 with SMTP id w6mr1578173pyi; Wed, 19 Jul 2006 11:55:15 -0700 (PDT) Received: by 10.35.76.12 with HTTP; Wed, 19 Jul 2006 11:55:15 -0700 (PDT) Message-ID: Date: Wed, 19 Jul 2006 11:55:15 -0700 From: "Matthew Davis" To: axis-user@ws.apache.org Subject: MIME Boundary Problem in Axis MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi. We're having a peculiar problem with the MIME boundary and start field in the HTTP/SOAP request. The boundary delimiter sent in the header is different than the boundary being used to delimit the individual MIME messages. We're using Axis 1.4 and the latest version of Sun's Activation Framework and Mail Framework. From a source code point of view, we're not doing anything beyond what is in a tutorial. I've attached a relevant fragment of our source code and the actual HTTP request captured. Has anyone encountered a situation like this? Any help would be greatly appreciated! Thanks, Matt <<<< Source Fragment >>>> SOAPPart sp; SOAPEnvelope se; // Create message factory MessageFactory mf = MessageFactoryImpl.newInstance(); // Construct base message SOAPMessage msg = mf.createMessage(); se.getBody().addAttribute(se.createName("SOAP-SEC:id"), "Body"); se.getBody().addDocument( XMLUtils.newDocument(new ByteArrayInputStream(request .getBytes()))); // Add attachements, if any exist if (attachments != null) { for (int i = 0; i < attachments.length; i++) { AttachmentPart ap = msg.createAttachmentPart(attachments[i].getData(), attachments[i].getMimeType()); ap.setContentId(attachments[i].getContentId()); msg.addAttachmentPart(ap); } } msg.saveChanges(); // Connect and send SOAPConnection conn = SOAPConnectionFactory.newInstance() .createConnection(); SOAPMessage response = null;; try { response = conn.call(msg, url); } catch (SOAPException e) { logger.fatal(e); throw e; } <<< >>> <<< MIME Message Captured by TCP sniffer >>> POST /request HTTP/1.0 Content-Type: multipart/related; type="text/xml"; start="<23DCC2238041C471E10010668012F1E7>"; boundary="----=_Part_7_12122257.1153328467218" Accept: application/soap+xml, application/dime, multipart/related, text/* User-Agent: Axis/1.4 Host: localhost:8080 Cache-Control: no-cache Pragma: no-cache SOAPAction: "" Content-Length: 17823 ------=_Part_8_11305824.1153332521953 Content-Type: text/xml; charset=UTF-8 Content-Transfer-Encoding: binary Content-Id: ------=_Part_8_11305824.1153332521953 Content-Type: text/xml Content-Transfer-Encoding: binary Content-Id: ------=_Part_8_11305824.1153332521953-- <<< >>> --------------------------------------------------------------------- To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org For additional commands, e-mail: axis-user-help@ws.apache.org