You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ode.apache.org by bo...@apache.org on 2007/08/06 22:30:10 UTC
svn commit: r563258 -
/ode/trunk/tools/src/main/java/org/apache/ode/tools/sendsoap/cline/HttpSoapSender.java
Author: boisvert
Date: Mon Aug 6 13:30:10 2007
New Revision: 563258
URL: http://svn.apache.org/viewvc?view=rev&rev=563258
Log:
SOAPAction is mandatory (and MUST be quoted) according to WS-I BasicProfile 1.1
Modified:
ode/trunk/tools/src/main/java/org/apache/ode/tools/sendsoap/cline/HttpSoapSender.java
Modified: ode/trunk/tools/src/main/java/org/apache/ode/tools/sendsoap/cline/HttpSoapSender.java
URL: http://svn.apache.org/viewvc/ode/trunk/tools/src/main/java/org/apache/ode/tools/sendsoap/cline/HttpSoapSender.java?view=diff&rev=563258&r1=563257&r2=563258
==============================================================================
--- ode/trunk/tools/src/main/java/org/apache/ode/tools/sendsoap/cline/HttpSoapSender.java (original)
+++ ode/trunk/tools/src/main/java/org/apache/ode/tools/sendsoap/cline/HttpSoapSender.java Mon Aug 6 13:30:10 2007
@@ -113,8 +113,8 @@
new UsernamePasswordCredentials(username, password));
httpPostMethod.setDoAuthentication(true);
}
- if (soapAction != null && soapAction.length() > 0)
- httpPostMethod.setRequestHeader("SOAPAction", soapAction);
+ if (soapAction == null) soapAction = "";
+ httpPostMethod.setRequestHeader("SOAPAction", "\"" + soapAction + "\"");
httpPostMethod.setRequestHeader("Content-Type", "text/xml");
httpPostMethod.setRequestEntity(new StringRequestEntity(sb.toString()));
httpClient.executeMethod(httpPostMethod);