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: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


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

Reply via email to