What version of Apache SOAP are you using for the client? As far back as version 2.2,
it properly handled UTF-8 and includes the charset in the Content-Type header.
Scott Nichol
Do not send e-mail directly to this e-mail address,
because it is filtered to accept only mail from
specific mail lists.
----- Original Message -----
From: "Dragos Vilcu" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 19, 2004 7:23 AM
Subject: SOAP CHARSET UTF-8
Hello.
I send a java call to a Soap Web Service (Apache Server - Oracle9i ) and I have
problems with characters like ş, ţ, ă, î, â (from Est-European languages).
The web-service receive '?' instead of proper characters.
my code :
//building the call
......................
Call call = new Call();
String serviceId = "urn:alladin";
call.setTargetObjectURI(serviceId);
call.setMethodName("parseSOAPMessage");
call.setEncodingStyleURI(Constants.NS_URI_LITERAL_XML);
.......................
/////
This is how my request look like:
POST /soap/servlet/soaprouter HTTP/1.0
Host: dragos
content-type: text/xml
soapaction: "urn:alladin"
user-agent: Oracle-Soap-Client/1.0 HTTP/1.0
Content-Length: 565
........
And problably content-type should look like this :
Content-Type: text/xml; charset=UTF-8 ???????
or
Content-Type: text/xml; charset=ISO-8859-2 ???????
What can I do change charset to "UTF-8" or to "ISO-8859-2" when I send the request?
This would solve the problem with Est-European characters ?
What else can I do ?
Thank you.