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 da...@apache.org on 2007/10/11 15:29:39 UTC

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

Author: davidillsley
Date: Thu Oct 11 06:29:39 2007
New Revision: 583822

URL: http://svn.apache.org/viewvc?rev=583822&view=rev
Log:
Scope the wsa: declaration to the Header which is the correct
level for the majority of situations and use the declared 
namespace object.

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/viewvc/webservices/axis2/trunk/java/modules/addressing/src/org/apache/axis2/handlers/addressing/AddressingOutHandler.java?rev=583822&r1=583821&r2=583822&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 Oct 11 06:29:39 2007
@@ -150,8 +150,6 @@
 
             addressingNamespace =
                     (isSubmissionNamespace ? Submission.WSA_NAMESPACE : Final.WSA_NAMESPACE);
-            addressingNamespaceObject =
-                    factory.createOMNamespace(addressingNamespace, WSA_DEFAULT_PREFIX);
 
             // if there is no soap header in the envelope being processed, add one.
             if (header == null) {
@@ -179,7 +177,7 @@
             // we have tested at the start of this whether messageInformationHeaders are null or not.
             // So rather than declaring addressing namespace in each and every addressing header, lets
             // define that in the Header itself.
-            envelope.declareNamespace(addressingNamespaceObject);
+        	addressingNamespaceObject = header.declareNamespace(addressingNamespace, WSA_DEFAULT_PREFIX);
 
             // processing WSA To
             processToEPR();



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org