axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davidills...@apache.org
Subject svn commit: r643041 - /webservices/axis2/trunk/java/modules/addressing/src/org/apache/axis2/handlers/addressing/AddressingOutHandler.java
Date Mon, 31 Mar 2008 16:12:33 GMT
Author: davidillsley
Date: Mon Mar 31 09:12:22 2008
New Revision: 643041

URL: http://svn.apache.org/viewvc?rev=643041&view=rev
Log:
AXIS2-3683 If using 2004/08 need to write a wsa:To header for anonymous. Need to deal with
the engine assuming that null is anonymous by writing a header anyway.


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=643041&r1=643040&r2=643041&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
Mon Mar 31 09:12:22 2008
@@ -197,6 +197,10 @@
             replaceHeaders = replace;
             includeOptionalHeaders = includeOptional;
             addressingRole = role;
+            
+            if(!isFinalAddressingNamespace && mc.getTo() == null){
+            	mc.setTo(new EndpointReference(AddressingConstants.Submission.WSA_ANONYMOUS_URL));
+            }
         }
 
         public void writeHeaders() throws AxisFault {



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


Mime
View raw message