axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From prad...@apache.org
Subject svn commit: r449234 - in /webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2: engine/AxisEngine.java util/Utils.java
Date Sat, 23 Sep 2006 13:28:57 GMT
Author: pradine
Date: Sat Sep 23 06:28:57 2006
New Revision: 449234

URL: http://svn.apache.org/viewvc?view=rev&rev=449234
Log:
Ensure that the correct WS-Addressing namespace is used when when fault response messages
are generated.

Modified:
    webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/engine/AxisEngine.java
    webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/util/Utils.java

Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/engine/AxisEngine.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/engine/AxisEngine.java?view=diff&rev=449234&r1=449233&r2=449234
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/engine/AxisEngine.java
(original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/engine/AxisEngine.java
Sat Sep 23 06:28:57 2006
@@ -151,7 +151,11 @@
         faultContext.addRelatesTo(new RelatesTo(processingContext.getOptions().getMessageId()));
         faultContext.setProperty(Constants.Configuration.CHARACTER_SET_ENCODING,
                 processingContext.getProperty(Constants.Configuration.CHARACTER_SET_ENCODING));
-
+        faultContext.setProperty(AddressingConstants.WS_ADDRESSING_VERSION,
+                processingContext.getProperty(AddressingConstants.WS_ADDRESSING_VERSION));
+        faultContext.setProperty(AddressingConstants.DISABLE_ADDRESSING_FOR_OUT_MESSAGES,
+                processingContext.getProperty(AddressingConstants.DISABLE_ADDRESSING_FOR_OUT_MESSAGES));
+        
         // register the fault message context
         if (processingContext.getAxisOperation() != null && processingContext.getOperationContext()
!= null) {
             processingContext.getAxisOperation().addFaultMessageContext(faultContext, processingContext.getOperationContext());

Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/util/Utils.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/util/Utils.java?view=diff&rev=449234&r1=449233&r2=449234
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/util/Utils.java (original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/util/Utils.java Sat Sep
23 06:28:57 2006
@@ -60,12 +60,16 @@
         newmsgCtx.setSessionContext(inMessageContext.getSessionContext());
         newmsgCtx.setTransportIn(inMessageContext.getTransportIn());
         newmsgCtx.setTransportOut(inMessageContext.getTransportOut());
-
+        
         Options oldOptions =
                 inMessageContext.getOptions();
 
         newmsgCtx.setMessageID(UUIDGenerator.getUUID());
         newmsgCtx.setTo(oldOptions.getReplyTo());
+        newmsgCtx.setProperty(AddressingConstants.WS_ADDRESSING_VERSION,
+                inMessageContext.getProperty(AddressingConstants.WS_ADDRESSING_VERSION));
+        newmsgCtx.setProperty(AddressingConstants.DISABLE_ADDRESSING_FOR_OUT_MESSAGES,
+                inMessageContext.getProperty(AddressingConstants.DISABLE_ADDRESSING_FOR_OUT_MESSAGES));
 
         // do Target Resolution
         newmsgCtx.getConfigurationContext().getAxisConfiguration().getTargetResolverChain().resolveTarget(newmsgCtx);



---------------------------------------------------------------------
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