You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@ws.apache.org by Bhushan Dongare <bh...@iopsis.com> on 2002/08/22 08:30:10 UTC

Problem with Multi byte Character Encoded Soap Payload

Dear all,
I am facing a problem with Multi byte Character Encoded Soap Payload,

Here is the problem description.
I am using Apache SOAP 2.3.1 with IBM web sphere 4.0, Tomcat Web server

My Business logic (EJBs) sends back RAW Data and/or HTML data as a output,
And these EJBs are exposed as web services, using Apache Soap.
EJBs are deployed as web services on IBM WAS, and Tomcat is just a web
service Client, (I have also tried this with dummy J2SE components,
with tomcat). Now the Business logic returns back Multi byte Character
Encoded data (RAW and HTML converted data). This is a multi lingual data,
either
encoded in Shift_JIS or Any other Non UTF-8 Encoded data.

When the Business Logic returns standard ANSI or UTF-8, The service works
fine, But when the Payload is Non UTF-8  web service throws
following exception.
----------------------------------------------------------------------------
----------------------------------------------------------------------------
----------------------------
Exception Returned from Stand alone Web services Client
[SOAPException: faultCode=SOAP-ENV:Client; msg=Parsing error, response was:
Illegal XML character:  &amp;#xe;.;
targetException=org.xml.sax.SAXParseException: Illegal XML character:
&#xe;.]
        at org.apache.soap.rpc.Call.invoke(Call.java:298)
        ...
        ...
Exception Returned from JSP/Servlet based Web services Client
[SOAPException: faultCode=SOAP-ENV:Client; msg=Parsing error, response was:
An invalid XML character (Unicode: 0xe) was found in the element content of
the document.; targetException=org.xml.sax.SAXParseException: An invalid XML
character (Unicode: 0xe) was found in the element content of the document.]
----------------------------------------------------------------------------
----------------------------------------------------------------------------
----------------------------