Author: azeez Date: Wed Mar 3 04:07:50 2010 New Revision: 918320 URL: http://svn.apache.org/viewvc?rev=918320&view=rev Log: Applying patch from Dumindu Pallewela https://issues.apache.org/jira/browse/AXIS2-4636
Modified: axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/engine/DispatchPhase.java axis/axis2/java/core/trunk/modules/transport/local/src/org/apache/axis2/transport/local/LocalTransportReceiver.java Modified: axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/engine/DispatchPhase.java URL: http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/engine/DispatchPhase.java?rev=918320&r1=918319&r2=918320&view=diff ============================================================================== --- axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/engine/DispatchPhase.java (original) +++ axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/engine/DispatchPhase.java Wed Mar 3 04:07:50 2010 @@ -202,7 +202,7 @@ } /** - * To check wether the incoming request has come in valid transport , simpley the transports + * To check whether the incoming request has come in valid transport , simply the transports * that service author wants to expose * * @param msgctx the current MessageContext @@ -214,10 +214,16 @@ return; } else { List trs = service.getExposedTransports(); - String incommingTrs = msgctx.getIncomingTransportName(); + String incomingTrs = msgctx.getIncomingTransportName(); + + //local transport is a special case, it need not be exposed. + if (Constants.TRANSPORT_LOCAL.equals(incomingTrs)) { + return; + } + for (int i = 0; i < trs.size(); i++) { String tr = (String) trs.get(i); - if (incommingTrs != null && incommingTrs.equals(tr)) { + if (incomingTrs != null && incomingTrs.equals(tr)) { return; } } Modified: axis/axis2/java/core/trunk/modules/transport/local/src/org/apache/axis2/transport/local/LocalTransportReceiver.java URL: http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/modules/transport/local/src/org/apache/axis2/transport/local/LocalTransportReceiver.java?rev=918320&r1=918319&r2=918320&view=diff ============================================================================== --- axis/axis2/java/core/trunk/modules/transport/local/src/org/apache/axis2/transport/local/LocalTransportReceiver.java (original) +++ axis/axis2/java/core/trunk/modules/transport/local/src/org/apache/axis2/transport/local/LocalTransportReceiver.java Wed Mar 3 04:07:50 2010 @@ -99,6 +99,7 @@ localTransportResOut.setSender(new LocalResponder(response)); try { + msgCtx.setIncomingTransportName(Constants.TRANSPORT_LOCAL); msgCtx.setTransportIn(tIn); msgCtx.setTransportOut(localTransportResOut); msgCtx.setProperty(MessageContext.TRANSPORT_OUT, response);