axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From prad...@apache.org
Subject svn commit: r635553 - /webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/OutInAxisOperation.java
Date Mon, 10 Mar 2008 13:37:23 GMT
Author: pradine
Date: Mon Mar 10 06:37:06 2008
New Revision: 635553

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

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

Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/OutInAxisOperation.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/OutInAxisOperation.java?rev=635553&r1=635552&r2=635553&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/OutInAxisOperation.java
(original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/OutInAxisOperation.java
Mon Mar 10 06:37:06 2008
@@ -25,7 +25,6 @@
 import org.apache.axis2.Constants;
 import org.apache.axis2.addressing.AddressingConstants;
 import org.apache.axis2.addressing.EndpointReference;
-import org.apache.axis2.addressing.AddressingConstants.Final;
 import org.apache.axis2.client.OperationClient;
 import org.apache.axis2.client.Options;
 import org.apache.axis2.client.async.AsyncResult;
@@ -289,17 +288,18 @@
             useCustomListener = Boolean.TRUE;
         }
         if (useCustomListener == null || !useCustomListener.booleanValue()) {
-            if(mc.getReplyTo()==null){
+            EndpointReference replyTo = mc.getReplyTo();
+            if (replyTo == null || replyTo.hasAnonymousAddress()){
                 EndpointReference replyToFromTransport =
                         mc.getConfigurationContext().getListenerManager().
                                 getEPRforService(sc.getAxisService().getName(),
                                         axisOp.getName().getLocalPart(), mc
                                         .getTransportIn().getName());
 
-                if (mc.getReplyTo() == null) {
+                if (replyTo == null) {
                     mc.setReplyTo(replyToFromTransport);
                 } else {
-                    mc.getReplyTo().setAddress(replyToFromTransport.getAddress());
+                    replyTo.setAddress(replyToFromTransport.getAddress());
                 }
             }
         }



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