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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]