New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SOAP Action not set when HeaderManager is specified #1729
Comments
Davanum Srinivas (migrated from Bugzilla): soap_action.txtIndex: src/protocol/http/org/apache/jmeter/protocol/http/sampler/SoapSampler.java
===================================================================
C:\APACHE\jmeter>diff -E -b -B -w -u -L "src/protocol/http/org/apache/jmeter/protocol/http/sampler/SoapSampler.java (revision 409249)" -L "src/protocol/http/org/apache/jmeter/protocol/http/sampler/SoapSampler.java (working copy)" src\protocol\http\org\apache\jmeter\protocol\http\sampler\.svn\text-base\SoapSampler.java.svn-base src\protocol\http\org\apache\jmeter\protocol\http\sampler\.svn\tmp\SoapSampler.java.tmp
--- src/protocol/http/org/apache/jmeter/protocol/http/sampler/SoapSampler.java (revision 409249)
+++ src/protocol/http/org/apache/jmeter/protocol/http/sampler/SoapSampler.java (working copy)
@@ -129,6 +129,10 @@
Header hd = mngr.getHeader(idx);
connection.setRequestProperty(hd.getName(), hd.getValue());
}
+ // If the soap action is not specified in the header manager
+ if(getSendSOAPAction() && connection.getRequestProperty("SOAPAction") == null) {
+ connection.setRequestProperty("SOAPAction", "\"" + getSOAPAction() + "\""); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
+ }
} else {
// otherwise we use "text/xml" as the default
connection.setRequestProperty(HEADER_CONTENT_TYPE, "text/xml"); //$NON-NLS-1$ |
Sebb (migrated from Bugzilla): |
peter lin (migrated from Bugzilla): peter |
Davanum Srinivas (migrated from Bugzilla): |
peter lin (migrated from Bugzilla): thanks for the info. peter |
Sebb (migrated from Bugzilla): |
Sebb (migrated from Bugzilla): Code has been updated in 2.1 branch. |
Davanum Srinivas (Bug 39656):
Hi,
Could you please consider this tiny enhancement to add SOAPAction explicitly if
the user does not specify one in the header manager?
thanks,
dims
Version: Nightly
Severity: normal
OS: other
The text was updated successfully, but these errors were encountered: