Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 14506 invoked from network); 11 Apr 2007 12:43:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Apr 2007 12:43:57 -0000 Received: (qmail 28485 invoked by uid 500); 11 Apr 2007 12:43:59 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 28450 invoked by uid 500); 11 Apr 2007 12:43:59 -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 28439 invoked by uid 99); 11 Apr 2007 12:43:59 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Apr 2007 05:43:59 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED 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; Wed, 11 Apr 2007 05:43:52 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 8CD1E714079 for ; Wed, 11 Apr 2007 05:43:32 -0700 (PDT) Message-ID: <2214784.1176295412573.JavaMail.jira@brutus> Date: Wed, 11 Apr 2007 05:43:32 -0700 (PDT) From: "Davanum Srinivas (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Assigned: (AXIS2-2505) SOAP XML character encoding is not handled at all, when constucting message from InputStream In-Reply-To: <6116476.1176294872313.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-2505?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Davanum Srinivas reassigned AXIS2-2505: --------------------------------------- Assignee: sumedha rubasinghe > SOAP XML character encoding is not handled at all, when constucting message from InputStream > -------------------------------------------------------------------------------------------- > > Key: AXIS2-2505 > URL: https://issues.apache.org/jira/browse/AXIS2-2505 > Project: Axis 2.0 (Axis2) > Issue Type: Bug > Affects Versions: 1.1.1, 1.1, 1.0 > Reporter: Michael Haeusler > Assigned To: sumedha rubasinghe > Priority: Critical > Attachments: patch.diff > > > whenever an existing SOAPMessage is read from an InputStream, the XML parser will use the system default encoding to decode the characters. > obviously this will not work if it doesn't match. > MimeHeaders headers = new MimeHeaders(); > headers.addHeader("Content-Type", "text/xml; charset=iso-8859-1"); > FileInputStream dataStream = new FileInputStream("test-resources/interop/soap-env-iso.xml"); > > SOAPMessage message = MessageFactory.newInstance().createMessage(headers, dataStream); > now if there is any special character in the xml file it will result in bad data. -- 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