ws-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shirai,Kaoru" <shi...@korinkan.co.jp>
Subject Passing non-ASCII String value
Date Thu, 02 Sep 2004 06:39:35 GMT
I have downloaded Apache XML-RPC 1.2-b1, and tried to invoke a remote
service with the following code:

XmlRpc.setEncoding("UTF8");
XmlRpcClient client = new XmlRpcClient(url);
Object[] args = new Object[] { "__STRING__" };
client.execute("remote.method", new Vector(Arrays.asList(args)));

If __STRING__ contains non-ASCII(c < 0x20 || c > 0xff)-character, it
fails with a  error "Invalid character data corresponding to XML
entity" at XMLWriter.chardata(String).

At XMLWriter.chardata(String) of CVS revision 1.2, it seems to just
pass the character to OutputStreamWriter.write(). Is that behaves
wrong? Why has it changed in 1.3 and 1.4?

Or is there another way to pass non-ASCII string for <string> value?
-- 
Shirai,Kaoru <shirai@korinkan.co.jp>
Korinkan Ltd. - http://www.korinkan.co.jp/

Mime
View raw message