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.0, 1.1, 1.1.1
            Reporter: Michael Haeusler
            Priority: Critical


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

Reply via email to