Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 65303 invoked from network); 22 Feb 2007 16:36:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 22 Feb 2007 16:36:30 -0000 Received: (qmail 24640 invoked by uid 500); 22 Feb 2007 16:36:35 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 24608 invoked by uid 500); 22 Feb 2007 16:36:35 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 24596 invoked by uid 99); 22 Feb 2007 16:36:35 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Feb 2007 08:36:35 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Feb 2007 08:36:25 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id B07467141B8 for ; Thu, 22 Feb 2007 08:36:05 -0800 (PST) Message-ID: <5173112.1172162165720.JavaMail.jira@brutus> Date: Thu, 22 Feb 2007 08:36:05 -0800 (PST) From: "Paul O'Connor (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Updated: (AXIS2-2236) Missing CRLF Before First MIME bounadry in Chunked SwA Messages In-Reply-To: <33158289.1172086205518.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/AXIS2-2236?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Paul O'Connor updated AXIS2-2236: --------------------------------- Summary: Missing CRLF Before First MIME bounadry in Chunked SwA Messages (was: Extraneous characters before first MIME bounadry in SwA messages) > Missing CRLF Before First MIME bounadry in Chunked SwA Messages > --------------------------------------------------------------- > > Key: AXIS2-2236 > URL: https://issues.apache.org/jira/browse/AXIS2-2236 > Project: Axis 2.0 (Axis2) > Issue Type: Bug > Affects Versions: 1.1.1, 1.1, nightly > Environment: WinXP, Java 1.5.0_07-B03 > Reporter: Paul O'Connor > > Extraneous characters appear before the first MIME boundary in SwA messages (both client and service) under Axis2. Axis2 client -to- Axis2 service has no problem moving past the extraneous characters to the first MIME boundary. Other infrastructure elements added as proxies are expecting only s preceding the first boundary. > The following HTTPTracer output lists the problem (includes HTTP headers). Note the extraneous '2291' before the first MIME boundary': > POST /iPipelineService HTTP/1.1 > Content-Type: multipart/related; boundary=MIMEBoundaryurn_uuid_836F9BE5DD4ED2CFC81172084603850; type="text/xml"; start="<0.urn:uuid:836F9BE5DD4ED2CFC81172084603851@apache.org>"; charset=UTF-8 > SOAPAction: "TXLifeRequestWithAttachment" > User-Agent: Axis2 > Host: rtigdev.axa-equitable.com:8888 > Transfer-Encoding: chunked > 2291 > --MIMEBoundaryurn_uuid_836F9BE5DD4ED2CFC81172084603850 > content-type: text/xml; charset=UTF-8 > content-transfer-encoding: 8bit > content-id: <0.urn:uuid:836F9BE5DD4ED2CFC81172084603851@apache.org> > > > > > --MIMEBoundaryurn_uuid_836F9BE5DD4ED2CFC81172084603850 > content-type: application/octet-stream > content-transfer-encoding: binary > content-id: > The client code segement used to generate the message is as follows: > XMLStreamReader parser = XMLInputFactory.newInstance().createXMLStreamReader(soapBodyStream); > StAXOMBuilder builder = new StAXOMBuilder(parser); > OMElement soapBodyPayload = builder.getDocumentElement(); > Options options = new Options(); > options.setTo(new EndpointReference(args[3])); > options.setProperty(Constants.Configuration.ENABLE_SWA, Constants.VALUE_TRUE); > options.setProperty(Constants.Configuration.DISABLE_SOAP_ACTION, Constants.VALUE_TRUE); > options.setSoapVersionURI(SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI); > > // Increase the time out when sending large attachments > options.setTimeOutInMilliSeconds(10000); > ServiceClient sender = new ServiceClient(); > sender.setOptions(options); > > OperationClient mepClient = sender.createClient(ServiceClient.ANON_OUT_IN_OP); > MessageContext mc = new MessageContext(); > FileDataSource fileDataSource = new FileDataSource(new File(args[2])); > // Create a dataHandler using the fileDataSource. Any implementation of > // javax.activation.DataSource interface can fit here. > DataHandler dataHandler = new DataHandler(fileDataSource); > mc.addAttachment(filename, dataHandler); > > SOAPFactory fac = OMAbstractFactory.getSOAP11Factory(); > SOAPEnvelope env = fac.getDefaultEnvelope(); > env.getBody().addChild(soapBodyPayload); > mc.setEnvelope(env); -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org For additional commands, e-mail: axis-dev-help@ws.apache.org