axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r451851 - in /webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http: CommonsHTTPTransportSender.java HTTPTransportUtils.java SOAPOverHTTPSender.java
Date Mon, 02 Oct 2006 01:28:14 GMT
Author: dims
Date: Sun Oct  1 18:28:13 2006
New Revision: 451851

URL: http://svn.apache.org/viewvc?view=rev&rev=451851
Log:
fix build break and the soap action quote problem

Modified:
    webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/CommonsHTTPTransportSender.java
    webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/HTTPTransportUtils.java
    webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/SOAPOverHTTPSender.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=451851&r1=451850&r2=451851
==============================================================================
--- 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
Sun Oct  1 18:28:13 2006
@@ -295,9 +295,7 @@
             
             if (soapActionString == null || JavaUtils.isTrueExplicitly(disableSoapAction))
{
                 soapActionString = "\"\"";
-            } else if (!soapActionString.startsWith("\"")) {  // SOAPAction string must be
a quoted string
-                soapActionString = "\"" + soapActionString + "\"";
-            }
+            } 
 
             // select the Message Sender depending on the REST status
             AbstractHTTPSender sender;

Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/HTTPTransportUtils.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/HTTPTransportUtils.java?view=diff&rev=451851&r1=451850&r2=451851
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/HTTPTransportUtils.java
(original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/HTTPTransportUtils.java
Sun Oct  1 18:28:13 2006
@@ -176,11 +176,13 @@
                 }
             }
 
+            System.out.println("before ["+ soapActionHeader +"]");
             // remove the starting and trailing " from the SOAP Action
             if ((soapActionHeader != null) && soapActionHeader.startsWith("\"")
                 && soapActionHeader.endsWith("\"")) {
                 soapActionHeader = soapActionHeader.substring(1, soapActionHeader.length()
- 1);
             }
+            System.out.println("after ["+ soapActionHeader +"]");
 
             // fill up the Message Contexts
             msgContext.setSoapAction(soapActionHeader);

Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/SOAPOverHTTPSender.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/SOAPOverHTTPSender.java?view=diff&rev=451851&r1=451850&r2=451851
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/SOAPOverHTTPSender.java
(original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/SOAPOverHTTPSender.java
Sun Oct  1 18:28:13 2006
@@ -78,7 +78,10 @@
                //if the soap action is empty then we should add two ""
                postMethod.setRequestHeader(HTTPConstants.HEADER_SOAP_ACTION, "\"\"");
             }else{
-              postMethod.setRequestHeader(HTTPConstants.HEADER_SOAP_ACTION, soapActionString);
+                if (soapActionString != null && !soapActionString.startsWith("\""))
{  // SOAPAction string must be a quoted string
+                    soapActionString = "\"" + soapActionString + "\"";
+                }
+                postMethod.setRequestHeader(HTTPConstants.HEADER_SOAP_ACTION, soapActionString);
             }
 
         } else {



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