|
Apache JMeter | ||||||||
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
public class 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 |
---|
Fields inherited from class org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase |
---|
ARGUMENTS, AUTH_MANAGER, AUTO_REDIRECTS, CACHE_MANAGER, CLIENT, CONNECT_TIMEOUT, CONTENT_ENCODING, CONTENT_TYPE, COOKIE_MANAGER, DEFAULT_METHOD, DO_MULTIPART_POST, DOMAIN, EMBEDDED_URL_RE, FOLLOW_REDIRECTS, HEADER_MANAGER, IMAGE_PARSER, IMPLEMENTATION, MAX_FRAME_DEPTH, MAX_REDIRECTS, METHOD, MONITOR, NON_HTTP_RESPONSE_CODE, NON_HTTP_RESPONSE_MESSAGE, PATH, PORT, PROTOCOL, RESPONSE_TIMEOUT, UNSPECIFIED_PORT, UNSPECIFIED_PORT_AS_STRING, URL, URL_UNSPECIFIED_PORT, URL_UNSPECIFIED_PORT_AS_STRING, USE_KEEPALIVE |
Fields inherited from interface org.apache.jmeter.protocol.http.util.HTTPConstantsInterface |
---|
APPLICATION_X_WWW_FORM_URLENCODED, CONNECTION_CLOSE, DEFAULT_HTTP_PORT, DEFAULT_HTTP_PORT_STRING, DEFAULT_HTTPS_PORT, DEFAULT_HTTPS_PORT_STRING, DELETE, ENCODING_GZIP, ETAG, GET, HEAD, HEADER_AUTHORIZATION, HEADER_CONNECTION, HEADER_CONTENT_DISPOSITION, HEADER_CONTENT_ENCODING, HEADER_CONTENT_LENGTH, HEADER_CONTENT_TYPE, HEADER_COOKIE, HEADER_LOCATION, HEADER_SET_COOKIE, HTTP_1_1, IF_MODIFIED_SINCE, IF_NONE_MATCH, KEEP_ALIVE, LAST_MODIFIED, MULTIPART_FORM_DATA, OPTIONS, POST, PROTOCOL_HTTP, PROTOCOL_HTTPS, PUT, TRACE, TRANSFER_ENCODING |
Fields inherited from interface org.apache.jmeter.testelement.TestElement |
---|
COMMENTS, ENABLED, GUI_CLASS, NAME, TEST_CLASS |
Constructor Summary | |
---|---|
WebServiceSampler()
|
Method Summary | |
---|---|
void |
addEncodedArgument(java.lang.String name,
java.lang.String value,
java.lang.String metaData)
We override this to prevent the wrong encoding and provide no implementation. |
java.lang.String |
convertSoapHeaders(java.util.Hashtable ht)
|
boolean |
getMemoryCache()
Get the memory cache. |
java.lang.String |
getProxyHost()
Return the proxy hostname |
int |
getProxyPort()
Return the proxy port |
protected java.lang.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. |
java.lang.String |
getSoapAction()
Return the soap action string. |
java.lang.String |
getTimeout()
|
int |
getTimeoutAsInt()
|
boolean |
getUseProxy()
Return whether or not to use proxy |
java.lang.String |
getWsdlURL()
method returns the WSDL URL |
java.lang.String |
getXmlData()
Get the XML data as a string. |
java.lang.String |
getXmlFile()
Get the file location of the xml file. |
java.lang.String |
getXmlPathLoc()
Get the path where XML messages are stored. this is the directory where JMeter will randomly select a file. |
SampleResult |
sample()
Sample the URL using Apache SOAP driver. |
protected HTTPSampleResult |
sample(java.net.URL u,
java.lang.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(java.lang.String host)
Set the proxy hostname |
void |
setProxyPort(java.lang.String port)
Set the proxy port |
void |
setReadResponse(boolean read)
Set whether the sampler should read the response or not. |
void |
setSoapAction(java.lang.String data)
Set the soap action which should be in the form of an URN. |
void |
setTimeout(java.lang.String text)
|
void |
setUseProxy(boolean proxy)
Set whether or not to use a proxy |
void |
setWsdlURL(java.lang.String url)
|
void |
setXmlData(java.lang.String data)
Set the XML data. |
void |
setXmlFile(java.lang.String filename)
it's kinda obvious, but we state it anyways. |
void |
setXmlPathLoc(java.lang.String path)
Set the path where XML messages are stored for random selection. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.jmeter.testelement.TestElement |
---|
canRemove, clear, getComment, getName, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsInt, getPropertyAsLong, getPropertyAsString, getPropertyAsString, getThreadContext, getThreadName, isEnabled, isRunningVersion, isTemporary, propertyIterator, recoverRunningVersion, removeProperty, setComment, setName, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, traverse |
Constructor Detail |
---|
public WebServiceSampler()
Method Detail |
---|
public void setXmlPathLoc(java.lang.String path)
public java.lang.String getXmlPathLoc()
public void setXmlFile(java.lang.String filename)
filename
- public java.lang.String getXmlFile()
protected java.lang.String getRandomFileName()
public void setXmlData(java.lang.String data)
data
- public java.lang.String getXmlData()
public void setSoapAction(java.lang.String data)
data
- public java.lang.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(java.lang.String host)
host
- public java.lang.String getProxyHost()
public void setProxyPort(java.lang.String port)
port
- public int getProxyPort()
public void setWsdlURL(java.lang.String url)
url
- public java.lang.String getWsdlURL()
protected HTTPSampleResult sample(java.net.URL u, java.lang.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
u
- URL to samples
- HTTP method: GET, POST,...b
- whether we're getting a redirect targeti
- Depth of this target in the frame structure. Used only to
prevent infinite recursion.
public SampleResult sample()
sample
in class HTTPSamplerBase
public void addEncodedArgument(java.lang.String name, java.lang.String value, java.lang.String metaData)
addEncodedArgument
in class HTTPSamplerBase
public java.lang.String convertSoapHeaders(java.util.Hashtable ht)
public java.lang.String getTimeout()
public int getTimeoutAsInt()
public void setTimeout(java.lang.String text)
|
Apache JMeter | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |