axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ruchi...@apache.org
Subject svn commit: r267185 - /webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/CommonsHTTPTransportSender.java
Date Fri, 02 Sep 2005 10:55:09 GMT
Author: ruchithf
Date: Fri Sep  2 03:55:02 2005
New Revision: 267185

URL: http://svn.apache.org/viewcvs?rev=267185&view=rev
Log:
fixing a bug - Now the default char set encoding is set properly

Modified:
    webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/CommonsHTTPTransportSender.java

Modified: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/CommonsHTTPTransportSender.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/CommonsHTTPTransportSender.java?rev=267185&r1=267184&r2=267185&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/CommonsHTTPTransportSender.java
(original)
+++ webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/CommonsHTTPTransportSender.java
Fri Sep  2 03:55:02 2005
@@ -77,14 +77,20 @@
                 OperationContext opctx = msgContext.getOperationContext();
                 if(opctx != null) {
                     charSetEnc = (String)opctx.getProperty(MessageContext.CHARACTER_SET_ENCODING);
-                } else {
-                    charSetEnc = MessageContext.DEFAULT_CHAR_SET_ENCODING;
                 }
             }
+            /**
+             * If the char set enc is still not found use the default
+             */
+            if(charSetEnc == null) {
+                charSetEnc = MessageContext.DEFAULT_CHAR_SET_ENCODING;
+            }
             msgContext.setDoingMTOM(HTTPTransportUtils.doWriteMTOM(msgContext));
             omOutput.setSoap11(msgContext.isSOAP11());
             omOutput.setDoOptimize(msgContext.isDoingMTOM());
 
+            omOutput.setCharSetEncoding(charSetEnc);
+            
             //Check for the REST behaviour, if you desire rest beahaviour
             //put a <parameter name="doREST" value="true"/> at the
             // server.xml/client.xml file



Mime
View raw message