ws-axis-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chinth...@apache.org
Subject svn commit: r382457 - /webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/engine/AxisEngine.java
Date Thu, 02 Mar 2006 17:38:43 GMT
Author: chinthaka
Date: Thu Mar  2 09:38:42 2006
New Revision: 382457

URL: http://svn.apache.org/viewcvs?rev=382457&view=rev
Log:
Fault must go to replyTo if faultTo is absent

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=382457&r1=382456&r2=382457&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
Thu Mar  2 09:38:42 2006
@@ -177,13 +177,14 @@
         EndpointReference faultTo = processingContext.getFaultTo();
         if (faultTo != null) {
             faultContext.setTo(processingContext.getFaultTo());
-        } else
-        if (processingContext.getEnvelope().getHeader() != null && processingContext.getEnvelope().getHeader().getFirstChildWithName(new
QName("FaultTo")) != null)
+        } else if (processingContext.getEnvelope().getHeader() != null && processingContext.getEnvelope().getHeader().getFirstChildWithName(new
QName("FaultTo")) != null)
         {
             OMElement faultToElement = processingContext.getEnvelope().getHeader().getFirstChildWithName(new
QName("FaultTo"));
             faultTo = new EndpointReference("");
             faultTo.fromOM(faultToElement);
             faultContext.setTo(faultTo);
+        } else if (processingContext.getReplyTo() != null) {
+            faultContext.setTo(processingContext.getReplyTo());
         }
 
         if (faultTo == null || AddressingConstants.Final.WSA_ANONYMOUS_URL.equals(faultTo.getAddress())



Mime
View raw message