|
Apache JMeter 2.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jmeter.testelement.AbstractTestElement
org.apache.jmeter.samplers.AbstractSampler
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase
org.apache.jmeter.protocol.http.sampler.WebServiceSampler
Sampler to handle Web Service requests. It uses Apache SOAP drivers to perform the XML generation, connection, SOAP encoding and other SOAP functions.
Created on: Jun 26, 2003
Field Summary | |
static String |
MEMORY_CACHE
|
static String |
PROXY_HOST
|
static String |
PROXY_PORT
|
static String |
READ_RESPONSE
|
static String |
SOAP_ACTION
|
static String |
USE_PROXY
|
static String |
WSDL_URL
|
static String |
XML_DATA
|
static String |
XML_DATA_FILE
|
static String |
XML_PATH_LOC
|
Fields inherited from interface org.apache.jmeter.testelement.TestElement |
ENABLED, GUI_CLASS, NAME, TEST_CLASS |
Constructor Summary | |
WebServiceSampler()
|
Method Summary | |
void |
addEncodedArgument(String name,
String value,
String metaData)
We override this to prevent the wrong encoding and provide no implementation. |
String |
convertSoapHeaders(Hashtable ht)
|
boolean |
getMemoryCache()
Get the memory cache. |
String |
getProxyHost()
Return the proxy hostname |
int |
getProxyPort()
Return the proxy port |
protected String |
getRandomFileName()
Method is used internally to check if a random file should be used for the message. |
boolean |
getReadResponse()
Return whether or not to read the response. |
String |
getSoapAction()
Return the soap action string. |
boolean |
getUseProxy()
Return whether or not to use proxy |
String |
getWsdlURL()
method returns the WSDL URL |
String |
getXmlData()
Get the XML data as a string. |
String |
getXmlFile()
Get the file location of the xml file. |
String |
getXmlPathLoc()
Get the path where XML messages are stored. this is the directory where JMeter will randomly select a file. |
protected org.w3c.dom.Document |
openDocument(String file)
Open the file and create a Document. |
SampleResult |
sample()
Sample the URL using Apache SOAP driver. |
protected HTTPSampleResult |
sample(URL u,
String s,
boolean b,
int i)
Samples the URL passed in and stores the result in HTTPSampleResult , following redirects and downloading
page resources as appropriate.
|
void |
setMemoryCache(boolean cache)
Set the memory cache. |
void |
setProxyHost(String host)
Set the proxy hostname |
void |
setProxyPort(String port)
Set the proxy port |
void |
setReadResponse(boolean read)
Set whether the sampler should read the response or not. |
void |
setSoapAction(String data)
Set the soap action which should be in the form of an URN. |
void |
setUseProxy(boolean proxy)
Set whether or not to use a proxy |
void |
setWsdlURL(String url)
|
void |
setXmlData(String data)
Set the XML data. |
void |
setXmlFile(String filename)
it's kinda obvious, but we state it anyways. |
void |
setXmlPathLoc(String path)
Set the path where XML messages are stored for random selection. |
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.jmeter.testelement.TestElement |
canRemove, clear, getProperty, getPropertyAsBoolean, getPropertyAsFloat, getPropertyAsInt, getPropertyAsLong, getPropertyAsString, getThreadContext, getThreadName, isEnabled, isRunningVersion, isTemporary, propertyIterator, recoverRunningVersion, removeProperty, setProperty, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, threadFinished, threadStarted, traverse |
Field Detail |
public static final String XML_DATA
public static final String SOAP_ACTION
public static final String XML_DATA_FILE
public static final String XML_PATH_LOC
public static final String MEMORY_CACHE
public static final String READ_RESPONSE
public static final String USE_PROXY
public static final String PROXY_HOST
public static final String PROXY_PORT
public static final String WSDL_URL
Constructor Detail |
public WebServiceSampler()
Method Detail |
public void setXmlPathLoc(String path)
public String getXmlPathLoc()
public void setXmlFile(String filename)
filename
- public String getXmlFile()
protected String getRandomFileName()
public void setXmlData(String data)
data
- public String getXmlData()
public void setSoapAction(String data)
data
- public String getSoapAction()
public void setMemoryCache(boolean cache)
cache
- public boolean getMemoryCache()
public void setReadResponse(boolean read)
read
- public boolean getReadResponse()
public void setUseProxy(boolean proxy)
proxy
- public boolean getUseProxy()
public void setProxyHost(String host)
host
- public String getProxyHost()
public void setProxyPort(String port)
port
- public int getProxyPort()
public void setWsdlURL(String url)
url
- public String getWsdlURL()
protected org.w3c.dom.Document openDocument(String file)
file
- - input filename or empty if using data from tesplan
protected HTTPSampleResult sample(URL u, String s, boolean b, int i)
HTTPSamplerBase
HTTPSampleResult
, following redirects and downloading
page resources as appropriate.
When getting a redirect target, redirects are not followed and resources are not downloaded. The caller will take care of this.
sample
in class HTTPSamplerBase
s
- HTTP method: GET, POST,...b
- whether we're getting a redirect target
public SampleResult sample()
sample
in class HTTPSamplerBase
public void addEncodedArgument(String name, String value, String metaData)
addEncodedArgument
in class HTTPSamplerBase
public String convertSoapHeaders(Hashtable ht)
|
Apache JMeter 2.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |