axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chinth...@apache.org
Subject svn commit: r382324 - /webservices/axis2/trunk/java/modules/addressing/src/org/apache/axis2/handlers/addressing/AddressingOutHandler.java
Date Thu, 02 Mar 2006 08:56:40 GMT
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)
{



Mime
View raw message