A WS request/response message maybe of UTF-16 or use a Byte Order Marker (BOM) with UTF-8
In the Axis code I found places where they do | new String(byteArray, "UTF-8") | ignoring the possibility that byteArray may be encoded differently. If the WS input stream is passed directly to the DeserializationContextImpl all works fine. If the same input stream is first transformed into a String, as it is the case when logging is enabled, deserialization fails with | org.xml.sax.SAXParseException: Content is not allowed in prolog. | There are a number of CTS tests that reliably fail when logging is enabled. How do I transform a byte array of unknown encoding to a String? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3873991#3873991 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3873991 ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ JBoss-Development mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-development
