[prev in list] [next in list] [prev in thread] [next in thread]
List: soap-user
Subject: Re: SOAP 2.3.1 and Internationalization
From: Clive Jordan <clive.jordan () openwave ! com>
Date: 2005-06-16 16:29:34
Message-ID: 42B1A8EE.9040300 () openwave ! com
[Download RAW message or body]
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Scott,<br>
<br>
Many thanks for your reply. Yes, is exactly the problem, the client was
setting Content-Type to utf-8.<br>
<br>
I really appreciate your help, I've spent a long time trying to solve
this an a few words of wizdom mean I can get some sleep tonight!<br>
<br>
Thanks,<br>
Clive<br>
<br>
Scott Nichol wrote:<br>
<blockquote cite="mid08c701c57288$980350c0$6401a8c0@northgate"
type="cite">
<pre wrap="">The HTTP Content-Type header must also specify the correct character \
encoding. In this case, please be sure that you have
Content-Type: text/xml; charset=iso-8859-1
in the request that carries the payload. Apache SOAP uses the charset specified in \
the Content-Type when converting the stream of bytes in the HTTP request entity to a \
Java string.
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: "Clive Jordan" <a class="moz-txt-link-rfc2396E" \
href="mailto:clive.jordan@openwave.com"><clive.jordan@openwave.com></a>
To: <a class="moz-txt-link-rfc2396E" \
href="mailto:soap-user@ws.apache.org"><soap-user@ws.apache.org></a>
Sent: Thursday, June 16, 2005 5:49 AM
Subject: SOAP 2.3.1 and Internationalization
</pre>
<blockquote type="cite">
<pre wrap="">Hi Guys,
Apologies if you have seen this question many times before...
I am using Apache SOAP 2.3.1 with JDK 1.4 running on AIX 5.2.
All is setup and working ok.
If I send a simple xml into message into the system, all is fine.
Each message starts:
<?xml version="1.0" encoding="UTF-8" ?>
We are now required to send data that contains non-ascii characters
(specifically, european accented letters). These are only in the tag
data, not the tags themselves.
So I changed the message header to:
<?xml version="1.0" encoding="iso-8859-1" ?>
This works fine.
Now the xml data was change to include an accented letter ( passÜxx).
When I send this data into the server, I get the following response:
<?xml version='1.0' encoding='UTF-8'?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV=<a class="moz-txt-link-rfc2396E" \
href="http://schemas.xmlsoap.org/soap/envelope/">"http://schemas.xmlsoap.org/soap/envelope/"</a> \
xmlns:xsi=<a class="moz-txt-link-rfc2396E" \
href="http://www.w3.org/2001/XMLSchema-instance">"http://www.w3.org/2001/XMLSchema-instance"</a> \
xmlns:xsd=<a class="moz-txt-link-rfc2396E" \
href="http://www.w3.org/2001/XMLSchema">"http://www.w3.org/2001/XMLSchema"</a>> \
<SOAP-ENV:Body> <SOAP-ENV:Fault>
<faultcode>SOAP-ENV:Client</faultcode>
<faultstring>parsing error: org.xml.sax.SAXParseException: XML document
structures must start and end within the same entity.</faultstring>
<faultactor>/soap/servlet/messagerouter</faultactor>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
This is being generated by the SOAP layer before it gets to the web service.
I have written a simple java program that parses theis file using the
built-in JAXP and that works fine. So I assume that the SOAP layer is
using an older parser that does not upport internationalization?
I cannot find xerces in any of the tomcat library directories so I am
puzzeled as to which parser is being used.
Is there a way I can find out what parser is being used and can I slide
in a newer one ?
Upgrading to Axis is not an option.
Any help gratefully received.
Thanks,
Clive
</pre>
</blockquote>
<pre wrap=""><!---->
</pre>
</blockquote>
</body>
</html>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic