ASF Bugzilla – Attachment 17850 Details for
Bug 38901
Add SOAPAction Header to SOAPSampler GUI
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to SoapSampler.java
SoapSampler.java.patch (text/plain), 1.52 KB, created by
sumit shah
on 2006-03-08 23:21:25 UTC
(
hide
)
Description:
Patch to SoapSampler.java
Filename:
MIME Type:
Creator:
sumit shah
Created:
2006-03-08 23:21:25 UTC
Size:
1.52 KB
patch
obsolete
>--- jakarta-jmeter-2.1.1/src/protocol/http/org/apache/jmeter/protocol/http/sampler/SoapSampler.java 2005-07-12 13:50:56.000000000 -0700 >+++ ../src/jakarta-jmeter-2.1.1/src/protocol/http/org/apache/jmeter/protocol/http/sampler/SoapSampler.java 2006-03-08 13:55:32.000000000 -0800 >@@ -42,8 +42,9 @@ > private static Logger log = LoggingManager.getLoggerForClass(); > > public static final String XML_DATA = "HTTPSamper.xml_data"; >- > public static final String URL_DATA = "SoapSampler.URL_DATA"; >+ public static final String SOAP_ACTION = "SoapSampler.SOAP_ACTION"; >+ public static final String SEND_SOAP_ACTION = "SoapSampler.SEND_SOAP_ACTION"; > > public void setXmlData(String data) { > setProperty(XML_DATA, data); >@@ -61,6 +62,22 @@ > setProperty(URL_DATA, url); > } > >+ public String getSOAPAction() { >+ return getPropertyAsString(SOAP_ACTION); >+ } >+ >+ public void setSOAPAction(String action) { >+ setProperty(SOAP_ACTION, action); >+ } >+ >+ public boolean getSendSOAPAction() { >+ return getPropertyAsBoolean(SEND_SOAP_ACTION); >+ } >+ >+ public void setSendSOAPAction(boolean action) { >+ setProperty(SEND_SOAP_ACTION, String.valueOf(action)); >+ } >+ > /** > * Set the HTTP request headers in preparation to open the connection and > * sending the POST data. >@@ -90,6 +107,7 @@ > } else { > // otherwise we use "text/xml" as the default > connection.setRequestProperty("Content-Type", "text/xml"); >+ if(getSendSOAPAction()) connection.setRequestProperty("SOAPAction", "\"" + getSOAPAction() + "\""); > } > connection.setDoOutput(true); > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 38901
: 17850 |
17851