axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dee...@apache.org
Subject svn commit: r556603 - /webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/AxisServlet.java
Date Mon, 16 Jul 2007 12:41:12 GMT
Author: deepal
Date: Mon Jul 16 05:41:05 2007
New Revision: 556603

URL: http://svn.apache.org/viewvc?view=rev&rev=556603
Log:
hmm ,we are setting HTTP sender whether we get http req or https 

Modified:
    webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/AxisServlet.java

Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/AxisServlet.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/AxisServlet.java?view=diff&rev=556603&r1=556602&r2=556603
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/AxisServlet.java
(original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/AxisServlet.java
Mon Jul 16 05:41:05 2007
@@ -597,12 +597,18 @@
             msgContext.setIncomingTransportName(trsPrefix);
         } else {
             msgContext.setIncomingTransportName(Constants.TRANSPORT_HTTP);
+            trsPrefix = Constants.TRANSPORT_HTTP;
         }
         TransportInDescription transportIn =
                 axisConfiguration.getTransportIn(msgContext.getIncomingTransportName());
         //set the default output description. This will be http
-        TransportOutDescription transportOut = configContext.getAxisConfiguration()
-                .getTransportOut(Constants.TRANSPORT_HTTP);
+
+        TransportOutDescription transportOut = axisConfiguration.getTransportOut(trsPrefix);
+        if (transportOut == null) {
+            // if the req coming via https but we do not have a https sender
+            transportOut = axisConfiguration.getTransportOut(Constants.TRANSPORT_HTTP);
+        }
+
 
         msgContext.setTransportIn(transportIn);
         msgContext.setTransportOut(transportOut);



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message