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 ru...@apache.org on 2011/01/26 09:58:05 UTC

svn commit: r1063637 - /axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/description/WSDL20ToAxisServiceBuilder.java

Author: ruwan
Date: Wed Jan 26 08:58:05 2011
New Revision: 1063637

URL: http://svn.apache.org/viewvc?rev=1063637&view=rev
Log:
Applying the patch from Pradeep on the issue AXIS2-4651

Modified:
    axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/description/WSDL20ToAxisServiceBuilder.java

Modified: axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/description/WSDL20ToAxisServiceBuilder.java
URL: http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/description/WSDL20ToAxisServiceBuilder.java?rev=1063637&r1=1063636&r2=1063637&view=diff
==============================================================================
--- axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/description/WSDL20ToAxisServiceBuilder.java (original)
+++ axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/description/WSDL20ToAxisServiceBuilder.java Wed Jan 26 08:58:05 2011
@@ -659,7 +659,7 @@ public class WSDL20ToAxisServiceBuilder 
             // If httpLocation is not null we should extract a constant part from it and add its value and the
             // corresponding AxisOperation to a map in order to dispatch rest messages. If httpLocation is null we add
             // the operation name into this map.
-            String httpLocationString = "";
+            String httpLocationString = null;
             if (httpLocation != null) {
                 String httpLocationTemplete = httpLocation.getOriginalLocation();
                 axisBindingOperation
@@ -667,8 +667,10 @@ public class WSDL20ToAxisServiceBuilder 
                 httpLocationString = WSDLUtil.getConstantFromHTTPLocation(httpLocationTemplete, HTTPConstants.HEADER_POST);
 
             }
-
-            httpLocationTable.put(httpLocationString, axisOperation);
+            if (httpLocationString != null){
+                // this map is used to dispatch operation based on request URI , in the HTTPLocationBasedDispatcher
+                httpLocationTable.put(httpLocationString, axisOperation);
+            }
             axisBindingOperation.setProperty(WSDL2Constants.ATTR_WHTTP_CONTENT_ENCODING,
                                              soapBindingOperationExtensions.getHttpContentEncodingDefault());
             axisBindingOperation.setProperty(WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,