axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r375873 - /webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/engine/AxisEngine.java
Date Wed, 08 Feb 2006 06:42:21 GMT
Author: dims
Date: Tue Feb  7 22:42:18 2006
New Revision: 375873

URL: http://svn.apache.org/viewcvs?rev=375873&view=rev
Log:
if no role is specified we are the ultimate receiver, and if we don't understand it, then
we should throw an fault

Modified:
    webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/engine/AxisEngine.java

Modified: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/engine/AxisEngine.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/engine/AxisEngine.java?rev=375873&r1=375872&r2=375873&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/engine/AxisEngine.java
(original)
+++ webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/engine/AxisEngine.java
Tue Feb  7 22:42:18 2006
@@ -96,13 +96,16 @@
 
                 // if must understand and soap 1.2 the Role should be NEXT , if it is null
we considerr
                 // it to be NEXT
-                if ((role != null) && !SOAP12Constants.SOAP_ROLE_NEXT.equals(role))
{
+                if (role != null) {
+                    if (!SOAP12Constants.SOAP_ROLE_NEXT.equals(role)) {
+                        throw new AxisFault("Must Understand check failed",
+                                SOAP11Constants.FAULT_CODE_MUST_UNDERSTAND);
+                    }
+                } else {
+                    // This is the ultimate receiver, throw an error.
                     throw new AxisFault("Must Understand check failed",
                             SOAP11Constants.FAULT_CODE_MUST_UNDERSTAND);
                 }
-
-                // TODO what should be do with the Ultimate Receiver? Axis2 is ultimate Receiver
most of the time
-                // should we support that as well
             } else {
 
                 // if must understand and soap 1.1 the actor should be NEXT , if it is null
we considerr



Mime
View raw message