axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chinth...@apache.org
Subject svn commit: r382396 - /webservices/axis2/trunk/java/modules/addressing/src/org/apache/axis2/handlers/addressing/AddressingInHandler.java
Date Thu, 02 Mar 2006 14:41:35 GMT
Author: chinthaka
Date: Thu Mar  2 06:41:34 2006
New Revision: 382396

URL: http://svn.apache.org/viewcvs?rev=382396&view=rev
Log:
Improving addressing by detecting duplicate WSA action and message id

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

Modified: webservices/axis2/trunk/java/modules/addressing/src/org/apache/axis2/handlers/addressing/AddressingInHandler.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/addressing/src/org/apache/axis2/handlers/addressing/AddressingInHandler.java?rev=382396&r1=382395&r2=382396&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/addressing/src/org/apache/axis2/handlers/addressing/AddressingInHandler.java
(original)
+++ webservices/axis2/trunk/java/modules/addressing/src/org/apache/axis2/handlers/addressing/AddressingInHandler.java
Thu Mar  2 06:41:34 2006
@@ -101,11 +101,15 @@
                     extractFaultToEPRInformation(messageContextOptions, soapHeaderBlock,
addressingNamespace);
                 }
             } else if (WSA_MESSAGE_ID.equals(soapHeaderBlock.getLocalName())) {
-                messageContextOptions.setMessageId(soapHeaderBlock.getText());
-                soapHeaderBlock.setProcessed();
+                if (!hasDuplicateHeaders(WSA_MESSAGE_ID, messageContext, alreadyFoundAddrHeader))
{
+                    messageContextOptions.setMessageId(soapHeaderBlock.getText());
+                    soapHeaderBlock.setProcessed();
+                }
             } else if (WSA_ACTION.equals(soapHeaderBlock.getLocalName())) {
-                messageContextOptions.setAction(soapHeaderBlock.getText());
-                soapHeaderBlock.setProcessed();
+                if (!hasDuplicateHeaders(WSA_ACTION, messageContext, alreadyFoundAddrHeader))
{
+                    messageContextOptions.setAction(soapHeaderBlock.getText());
+                    soapHeaderBlock.setProcessed();
+                }
             } else if (WSA_RELATES_TO.equals(soapHeaderBlock.getLocalName())) {
                 if (!hasDuplicateHeaders(WSA_RELATES_TO, messageContext, alreadyFoundAddrHeader))
{
                     extractRelatesToInformation(soapHeaderBlock, addressingNamespace, messageContextOptions);



Mime
View raw message