axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thil...@apache.org
Subject svn commit: r440704 - in /webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2: context/MessageContext.java transport/http/HTTPTransportUtils.java
Date Wed, 06 Sep 2006 12:48:00 GMT
Author: thilina
Date: Wed Sep  6 05:47:59 2006
New Revision: 440704

URL: http://svn.apache.org/viewvc?view=rev&rev=440704
Log:
Fixing the invalid SOAP fault behaviour when MTOM is enabled...

Modified:
    webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/context/MessageContext.java
    webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/HTTPTransportUtils.java

Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/context/MessageContext.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/context/MessageContext.java?view=diff&rev=440704&r1=440703&r2=440704
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/context/MessageContext.java
(original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/context/MessageContext.java
Wed Sep  6 05:47:59 2006
@@ -1019,7 +1019,11 @@
      */
     public boolean isHeaderPresent() {
         OMElement node = getEnvelope().getFirstElement();
-        if (node != null && node.getQName().getLocalPart().equals(SOAPConstants.BODY_LOCAL_NAME))
{
+        if (node ==null)
+        {
+        	return false;
+        }
+        else if (node.getQName().getLocalPart().equals(SOAPConstants.BODY_LOCAL_NAME)) {
             return false;
         }
         return true;

Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/HTTPTransportUtils.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/HTTPTransportUtils.java?view=diff&rev=440704&r1=440703&r2=440704
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/HTTPTransportUtils.java
(original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/HTTPTransportUtils.java
Wed Sep  6 05:47:59 2006
@@ -323,7 +323,7 @@
             throw new AxisFault(e);
         } finally {
             if ((msgContext.getEnvelope() == null) && !soap11) {
-                msgContext.setEnvelope(new SOAP12Factory().createSOAPEnvelope());
+                msgContext.setEnvelope(new SOAP12Factory().getDefaultEnvelope());
             }
         }
     }



---------------------------------------------------------------------
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