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


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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to