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 ji...@apache.org on 2004/03/23 15:37:58 UTC

[jira] Closed: (AXIS-991) Content-Type: text/html; charset=ISO-8859-1 - cannot generate

Message:

   The following issue has been closed.

   Resolver: Davanum Srinivas
       Date: Tue, 23 Mar 2004 6:36 AM

There's a way to do it. closing bug.
---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/secure/ViewIssue.jspa?key=AXIS-991

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: AXIS-991
    Summary: Content-Type: text/html; charset=ISO-8859-1  - cannot generate
       Type: Bug

     Status: Closed
 Resolution: WON'T FIX

    Project: Axis
 Components: 
             Basic Architecture
   Versions:
             1.1

   Assignee: 
   Reporter: Dr. Andreas Krüger

    Created: Thu, 7 Aug 2003 12:09 PM
    Updated: Tue, 23 Mar 2004 6:36 AM
Environment: Operating System: Other
Platform: Other

Description:
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


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira