You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by am...@apache.org on 2009/12/17 13:40:43 UTC

svn commit: r891675 - /webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/OutInAxisOperation.java

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