You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by pr...@apache.org on 2007/04/04 13:45:28 UTC

svn commit: r525497 - /webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/CommonsHTTPTransportSender.java

Author: pradine
Date: Wed Apr  4 04:45:27 2007
New Revision: 525497

URL: http://svn.apache.org/viewvc?view=rev&rev=525497
Log:
EPR handling in the HTTPTransport not quite right.

Modified:
    webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/CommonsHTTPTransportSender.java

Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/CommonsHTTPTransportSender.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/CommonsHTTPTransportSender.java?view=diff&rev=525497&r1=525496&r2=525497
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/CommonsHTTPTransportSender.java (original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/CommonsHTTPTransportSender.java Wed Apr  4 04:45:27 2007
@@ -197,13 +197,18 @@
             // epr = something
             // ######################################################
 
-            if ((epr != null) && (!epr.hasNoneAddress())) {
-                writeMessageWithCommons(msgContext, epr, format);
-            } else if (msgContext.getProperty(MessageContext.TRANSPORT_OUT) != null) {
-                sendUsingOutputStream(msgContext, format);
-            } else {
-                throw new AxisFault(
-                        "Both the TO and MessageContext.TRANSPORT_OUT property are Null, No where to send");
+            if (epr != null) {
+                if (!epr.hasNoneAddress()) {
+                    writeMessageWithCommons(msgContext, epr, format);
+                }
+            }
+            else {
+                if (msgContext.getProperty(MessageContext.TRANSPORT_OUT) != null) {
+                    sendUsingOutputStream(msgContext, format);
+                } else {
+                    throw new AxisFault(
+                    "Both the TO and MessageContext.TRANSPORT_OUT property are Null, No where to send");
+                }
             }
 
             if (msgContext.getOperationContext() != null) {



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