You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-commits@axis.apache.org by az...@apache.org on 2011/01/04 18:56:00 UTC

svn commit: r1055120 - /axis/axis2/java/core/trunk/modules/transport/http/src/org/apache/axis2/transport/http/AxisServlet.java

Author: azeez
Date: Tue Jan  4 17:56:00 2011
New Revision: 1055120

URL: http://svn.apache.org/viewvc?rev=1055120&view=rev
Log:
When enableMTOM is set to true on the server side, Axis2 sends an invalid response. The root cause is the Content-Type which is correctly set by the MessageFormatters being overridden by some code in the AxisServlet. Removing this bit of code which blindly sets the Content-Type.

For more details see: 
http://markmail.org/message/jrxjexqwi6oicvat?q=list:org.apache.ws.axis-dev



Modified:
    axis/axis2/java/core/trunk/modules/transport/http/src/org/apache/axis2/transport/http/AxisServlet.java

Modified: axis/axis2/java/core/trunk/modules/transport/http/src/org/apache/axis2/transport/http/AxisServlet.java
URL: http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/modules/transport/http/src/org/apache/axis2/transport/http/AxisServlet.java?rev=1055120&r1=1055119&r2=1055120&view=diff
==============================================================================
--- axis/axis2/java/core/trunk/modules/transport/http/src/org/apache/axis2/transport/http/AxisServlet.java (original)
+++ axis/axis2/java/core/trunk/modules/transport/http/src/org/apache/axis2/transport/http/AxisServlet.java Tue Jan  4 17:56:00 2011
@@ -159,9 +159,7 @@ public class AxisServlet extends HttpSer
                             .getProperty(RequestResponseTransport.TRANSPORT_CONTROL))
                             .awaitResponse();
                 }
-                response.setContentType("text/xml; charset="
-                        + msgContext
-                        .getProperty(Constants.Configuration.CHARACTER_SET_ENCODING));
+
                 // if data has not been sent back and this is not a signal response
                 if (!TransportUtils.isResponseWritten(msgContext)  
                 		&& (((RequestResponseTransport)