axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Soichi Hayashi (JIRA)" <j...@apache.org>
Subject [jira] Commented: (AXIS2-4970) SOAPElement.addTextNode allows entering invalid XML character
Date Thu, 03 Mar 2011 22:38:36 GMT

    [ https://issues.apache.org/jira/browse/AXIS2-4970?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13002287#comment-13002287
] 

Soichi Hayashi commented on AXIS2-4970:
---------------------------------------

OK sure.. then can you make sure that when the SOAP message is serialized into XML, the generated
XML is a valid XML?

> 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
> <xml>
> &#24;test
> </xml>
> 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


Mime
View raw message