You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by th...@apache.org on 2007/01/04 07:30:19 UTC

svn commit: r492422 - /webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/AxisServlet.java

Author: thilina
Date: Wed Jan  3 22:30:18 2007
New Revision: 492422

URL: http://svn.apache.org/viewvc?view=rev&rev=492422
Log:
porting http://svn.apache.org/viewvc?view=rev&rev=489382 to the trunk..

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=492422&r1=492421&r2=492422
==============================================================================
--- 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 Wed Jan  3 22:30:18 2007
@@ -35,6 +35,7 @@
 import edu.emory.mathcs.backport.java.util.concurrent.CountDownLatch;
 import org.apache.axiom.om.impl.builder.StAXBuilder;
 import org.apache.axiom.om.util.UUIDGenerator;
+import org.apache.axiom.soap.SOAP12Constants;
 import org.apache.axis2.AxisFault;
 import org.apache.axis2.Constants;
 import org.apache.axis2.addressing.AddressingHelper;
@@ -545,9 +546,13 @@
      */
     private boolean isRESTRequest(String contentType, HttpServletRequest request) {
         String soapActionHeader = request.getHeader(HTTPConstants.HEADER_SOAP_ACTION);
-//possible bug.. 
-        return ((soapActionHeader == null) ||
+        if (contentType != null && contentType.indexOf(SOAP12Constants.SOAP_12_CONTENT_TYPE) > -1)
+        {
+        	return false;
+        }else {
+        	return ((soapActionHeader == null) ||
                 (contentType != null && contentType.indexOf(HTTPConstants.MEDIA_TYPE_X_WWW_FORM) > -1));
+        }
     }
     
     class ServletRequestResponseTransport implements RequestResponseTransport



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