Hi,
I want to change the character encoding to another than UTF-8, like
UTF-16 or ISO-8859-1.
I've tried with:
Options options = new Options();
options.setTo(targetEPR);
options.setProperty(org.apache.axis2.context.MessageContext.CHARACTER_SET_ENCODING,
org.apache.axis2.context.MessageContext.UTF_16);
ServiceClient sender = new ServiceClient();
sender.setOptions(options);
OMElement result2 = sender.sendReceive(payload2);
but does not work, with the SOAPMonitor the SOAP message begins with
<?xml version='1.0' encoding='utf-8'?>
and the text included is utf-8 too.
I've tried with
options.setProperty(org.apache.axis2.context.MessageContext.DEFAULT_CHAR_SET_ENCODING,
"utf-16");
and "UTF-16" but doesn't work.
Can anybody help me?
Thanks in advance
Janfry
_________________________________________________________________
Un amor, una aventura, compañía para un viaje. Regístrate gratis en MSN Amor
& Amistad. http://match.msn.es/match/mt.cfm?pg=channel&tcid=162349
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]