You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by bu...@apache.org on 2003/08/07 14:09:52 UTC
DO NOT REPLY [Bug 22209] New: -
Content-Type: text/html; charset=ISO-8859-1 - cannot generate
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22209>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22209
Content-Type: text/html; charset=ISO-8859-1 - cannot generate
Summary: Content-Type: text/html; charset=ISO-8859-1 - cannot
generate
Product: Axis
Version: 1.1
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: Other
Component: Basic Architecture
AssignedTo: axis-dev@ws.apache.org
ReportedBy: akrueger@tes.zv.mmo.de
I have a fairly low-level message service.
I do
MessageContext.getCurrentContext().setResponseMessage(response);
To construct "response", I have used
bytes xmldata[] = ...;
response = new Message(xmldata, false);
As it happens, that xmldata is coded in ISO-8859-1,
(and, incidently, contains a XML declaration that says so).
Of course, I want the HTTP-header to reflect this fact, too.
So I do
response.getSOAPPart().
setMimeHeader("Content-Type","text/xml; charset=ISO-8859-1");
but that has not helped. AXIS is still generating the HTTP-Header
Content-Type: text/xml; charset=utf-8
I have also tried some invented MIME-Header "X-Something", but that is not
forwarded to the client, either.
Regards,
Andreas