Return-Path: Delivered-To: apmail-axis-java-dev-archive@www.apache.org Received: (qmail 4126 invoked from network); 3 Mar 2011 23:00:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 3 Mar 2011 23:00:02 -0000 Received: (qmail 16306 invoked by uid 500); 3 Mar 2011 23:00:01 -0000 Delivered-To: apmail-axis-java-dev-archive@axis.apache.org Received: (qmail 16124 invoked by uid 500); 3 Mar 2011 23:00:01 -0000 Mailing-List: contact java-dev-help@axis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@axis.apache.org Delivered-To: mailing list java-dev@axis.apache.org Received: (qmail 16114 invoked by uid 99); 3 Mar 2011 23:00:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Mar 2011 23:00:01 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Mar 2011 23:00:00 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id C16FE4E4E4 for ; Thu, 3 Mar 2011 22:59:40 +0000 (UTC) Date: Thu, 3 Mar 2011 22:59:40 +0000 (UTC) From: "Andreas Veithen (JIRA)" To: java-dev@axis.apache.org Message-ID: <1279798686.12354.1299193180789.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1361298166.8279.1299088897836.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] Commented: (AXIS2-4970) SOAPElement.addTextNode allows entering invalid XML character MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AXIS2-4970?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13002298#comment-13002298 ] Andreas Veithen commented on AXIS2-4970: ---------------------------------------- That depends on the underlying StAX implementation. I think Woodstox (which is the StAX implementation recommended by Axis2) will do the check and throw an exception. > SOAPElement.addTextNode allows entering invalid XML character > ------------------------------------------------------------- > > Key: AXIS2-4970 > URL: https://issues.apache.org/jira/browse/AXIS2-4970 > Project: Axis2 > Issue Type: Wish > Reporter: Soichi Hayashi > Assignee: Andreas Veithen > > I am not sure if this issue is already reported or not, but since I couldn't find it anywhere.. let me open a new ticket.. > There are certain characters that are invalid in XML.. for example, following is an invalid XML > > test > > When I pass an unicode string containing char(24) (which is a valid Unicode char by the way) to SOAPElement.addTextNode(), it doesn't complain nor validate such string. The SOAP envelop will be constructed and passed to the destination SOAP server without any issue. However, when the server tries to parse the SOAP envelop, it throws up (such as Perl's SOAP server which uses XML::Parser to parse it). > Now, whose fault is this? I am not sure... but, for one thing, SOAPElement.addTextNode, or should be smart enough to check for characters that are invalid XML and throws exception if such string is passed since it knows that the string will be eventually formatted in XML. > Thanks, > Soichi Hayashi -- This message is automatically generated by JIRA. - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org For additional commands, e-mail: java-dev-help@axis.apache.org