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 aj...@apache.org on 2006/03/29 11:35:21 UTC

svn commit: r389727 - /webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/SOAPOverHTTPSender.java

Author: ajith
Date: Wed Mar 29 01:35:19 2006
New Revision: 389727

URL: http://svn.apache.org/viewcvs?rev=389727&view=rev
Log:
Fixing a minor bug in setting the SOAPAction. For the empty string case it should be two ""

Modified:
    webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/SOAPOverHTTPSender.java

Modified: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/SOAPOverHTTPSender.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/SOAPOverHTTPSender.java?rev=389727&r1=389726&r2=389727&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/SOAPOverHTTPSender.java (original)
+++ webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/SOAPOverHTTPSender.java Wed Mar 29 01:35:19 2006
@@ -54,7 +54,13 @@
         postMethod.setRequestHeader(HTTPConstants.HEADER_USER_AGENT, "Axis/2.0");
 
         if (msgContext.isSOAP11()) {
-            postMethod.setRequestHeader(HTTPConstants.HEADER_SOAP_ACTION, soapActionString);
+            if ("".equals(soapActionString)){
+               //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);
+            }
+
         } else {
         }
         //setting the coolie in the out path