axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ami...@apache.org
Subject svn commit: r891675 - /webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/OutInAxisOperation.java
Date Thu, 17 Dec 2009 12:40:43 GMT
Author: amilas
Date: Thu Dec 17 12:40:37 2009
New Revision: 891675

URL: http://svn.apache.org/viewvc?rev=891675&view=rev
Log:
getting the response evelope with the message context after handler invocations. other wise
there can be problems with the encripted fault messages

Modified:
    webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/OutInAxisOperation.java

Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/OutInAxisOperation.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/OutInAxisOperation.java?rev=891675&r1=891674&r2=891675&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/OutInAxisOperation.java
(original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/OutInAxisOperation.java
Thu Dec 17 12:40:37 2009
@@ -365,6 +365,10 @@
             if (responseMessageContext.getReplyTo() != null) {
                 sc.setTargetEPR(responseMessageContext.getReplyTo());
             }
+
+            // rampart handlers change the envelope and set the decrypted envelope
+            // so need to check the new one else resenvelope.hasFault() become false.
+            resenvelope = responseMessageContext.getEnvelope();
             if (resenvelope.hasFault()||responseMessageContext.isProcessingFault()) {
                 if (options.isExceptionToBeThrownOnSOAPFault()) {
                     // does the SOAPFault has a detail element for Excpetion



Mime
View raw message