You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by de...@apache.org on 2007/07/16 14:41:12 UTC
svn commit: r556603 -
/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/AxisServlet.java
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