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 ch...@apache.org on 2006/03/02 09:56:40 UTC

svn commit: r382324 - /webservices/axis2/trunk/java/modules/addressing/src/org/apache/axis2/handlers/addressing/AddressingOutHandler.java

Author: chinthaka
Date: Thu Mar  2 00:56:30 2006
New Revision: 382324

URL: http://svn.apache.org/viewcvs?rev=382324&view=rev
Log:
If there is a fault the WSA fault action should be the WSA Action. Fixed that.

Modified:
    webservices/axis2/trunk/java/modules/addressing/src/org/apache/axis2/handlers/addressing/AddressingOutHandler.java

Modified: webservices/axis2/trunk/java/modules/addressing/src/org/apache/axis2/handlers/addressing/AddressingOutHandler.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/addressing/src/org/apache/axis2/handlers/addressing/AddressingOutHandler.java?rev=382324&r1=382323&r2=382324&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/addressing/src/org/apache/axis2/handlers/addressing/AddressingOutHandler.java (original)
+++ webservices/axis2/trunk/java/modules/addressing/src/org/apache/axis2/handlers/addressing/AddressingOutHandler.java Thu Mar  2 00:56:30 2006
@@ -122,11 +122,7 @@
         }
 
         // processing WSA Action
-        String action = messageContextOptions.getAction();
-        if (action != null && !isAddressingHeaderAlreadyAvailable(WSA_ACTION, envelope,
-                addressingNamespaceObject)) {
-            processStringInfo(action, WSA_ACTION, envelope);
-        }
+        processWSAAction(messageContextOptions, envelope);
 
         // processing WSA RelatesTo
         processRelatesTo(envelope, messageContextOptions);
@@ -138,6 +134,17 @@
         addressingNamespaceObject = null;
         addressingNamespace = null;
 
+    }
+
+    private void processWSAAction(Options messageContextOptions, SOAPEnvelope envelope) {
+        if (msgCtxt.isProcessingFault()) {
+            processStringInfo(Final.WSA_FAULT_ACTION, WSA_ACTION, envelope);
+        }
+        String action = messageContextOptions.getAction();
+        if (action != null && !isAddressingHeaderAlreadyAvailable(WSA_ACTION, envelope,
+                addressingNamespaceObject)) {
+            processStringInfo(action, WSA_ACTION, envelope);
+        }
     }
 
     private void processFaultsInfoIfPresent(SOAPEnvelope envelope, MessageContext msgContext) {