axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From prad...@apache.org
Subject svn commit: r551836 - /webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/OutOnlyAxisOperation.java
Date Fri, 29 Jun 2007 09:33:19 GMT
Author: pradine
Date: Fri Jun 29 02:33:17 2007
New Revision: 551836

URL: http://svn.apache.org/viewvc?view=rev&rev=551836
Log:
Fix for AXIS2-2876.

Modified:
    webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/OutOnlyAxisOperation.java

Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/OutOnlyAxisOperation.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/OutOnlyAxisOperation.java?view=diff&rev=551836&r1=551835&r2=551836
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/OutOnlyAxisOperation.java
(original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/OutOnlyAxisOperation.java
Fri Jun 29 02:33:17 2007
@@ -17,6 +17,8 @@
 
 import org.apache.axiom.om.util.UUIDGenerator;
 import org.apache.axis2.AxisFault;
+import org.apache.axis2.addressing.AddressingConstants.Final;
+import org.apache.axis2.addressing.EndpointReference;
 import org.apache.axis2.client.OperationClient;
 import org.apache.axis2.client.Options;
 import org.apache.axis2.client.async.Callback;
@@ -241,11 +243,17 @@
         }
         ConfigurationContext cc = sc.getConfigurationContext();
         prepareMessageContext(cc, mc);
-        // setting message ID if it null
 
+        //As this is an out-only MEP we add a sensible default for
+        //the replyTo.
+        EndpointReference epr = mc.getReplyTo();
+        if (epr == null)
+            mc.setReplyTo(new EndpointReference(Final.WSA_NONE_URI));
+        
         // create the operation context for myself
         OperationContext oc = sc.createOperationContext(axisOp);
         oc.addMessageContext(mc);
+        
         // ship it out
         AxisEngine engine = new AxisEngine(cc);
         if (!block) {



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