|
Apache JMeter 1.9 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.jmeter.testelement.AbstractTestElement | +--org.apache.jmeter.samplers.AbstractSampler | +--org.apache.jmeter.protocol.http.sampler.HTTPSampler | +--org.apache.jmeter.protocol.http.sampler.WebServiceSampler
Title: JMeter Access Log utilities
Copyright: Apache.org
Company: nobody
License:
Look at the apache license at the top.
Description:
Sampler to handle Web Service requests. It uses Apache
soap drivers to perform the XML generation, connection,
soap encoding and other soap functions.
Author: Peter Lin
Version: 0.1
Created on: Jun 26, 2003
Nested Class Summary |
Nested classes inherited from class org.apache.jmeter.protocol.http.sampler.HTTPSampler |
HTTPSampler.Test |
Field Summary | |
static String |
MEMORY_CACHE
|
static String |
READ_RESPONSE
|
static String |
SOAP_ACTION
|
protected String |
SOAPACTION
The SOAPAction is required by MS webservices and is defined by the WSDL. |
protected static javax.xml.parsers.DocumentBuilder |
XDB
We make DocumentBuilder static. |
static String |
XML_DATA
|
static String |
XML_DATA_FILE
|
static String |
XML_PATH_LOC
|
protected org.w3c.dom.Document |
XMLMSG
The XML document |
Fields inherited from class org.apache.jmeter.protocol.http.sampler.HTTPSampler |
ARGUMENTS, AUTH_MANAGER, conn, CONTENT_TYPE, COOKIE_MANAGER, DEFAULT_PROTOCOL, DOMAIN, ENCODED_PATH, encoding, FILE_DATA, FILE_FIELD, FILE_MIMETYPE, FILE_NAME, FOLLOW_REDIRECTS, GET, HEADER, HEADER_MANAGER, HEADERS, IMAGE_PARSER, METHOD, MIMETYPE, MULTIPART_FORM, NON_HTTP_RESPONSE_CODE, NON_HTTP_RESPONSE_MESSAGE, NORMAL_FORM, PATH, PORT, POST, PROTOCOL, UNSPECIFIED_PORT, URL, USE_KEEPALIVE |
Fields inherited from class org.apache.jmeter.testelement.AbstractTestElement |
log |
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. |
protected long |
connect()
We override this to prevent the wrong encoding and provide no implementation. |
org.w3c.dom.Element |
createDocument()
This method uses Apache soap util to create the proper DOM elements. |
boolean |
getMemoryCache()
get the memory cache |
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 |
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 key)
Open the file and create a Document. |
SampleResult |
sample()
sample() does the following: create a new SampleResult, call sampleWithApache, and return the result. |
SampleResult |
sample(Entry e)
sample(Entry e) simply calls sample(). |
void |
sampleWithApache()
Sample the URL using Apache SOAP driver. |
void |
setMemoryCache(boolean cache)
set the memory cache |
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 |
protected HttpURLConnection |
setupConnection(URL u,
String method)
We override this to prevent the wrong encoding and provide no implementation. |
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 org.apache.jmeter.protocol.http.sampler.HTTPSampler |
addArgument, addArgument, addProperty, addTestElement, disconnect, getArguments, getAuthManager, getCookieManager, getDomain, getEncodedPath, getFileField, getFilename, getFollowRedirects, getHeaderManager, getMethod, getMimetype, getPath, getPort, getProtocol, getQueryString, getResponseHeaders, getUrl, getUseKeepAlive, isImageParser, parseArguments, readResponse, removeArguments, sendPostData, setArguments, setAuthManager, setCookieManager, setDomain, setEncodedPath, setFileField, setFilename, setFollowRedirects, setHeaderManager, setImageParser, setMethod, setMimetype, setPath, setPort, setPostHeaders, setProperty, setProtocol, setupConnection, setUseKeepAlive, toString |
Methods inherited from class org.apache.jmeter.testelement.AbstractTestElement |
clear, clone, equals, getName, getProperty, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsLong, getPropertyAsString, isRunningVersion, logProperties, mergeIn, nextIsNull, propertyIterator, recoverRunningVersion, removeProperty, setName, setProperty, setRunningVersion, traverse, traverseCollection, traverseMap, traverseProperty |
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.jmeter.testelement.TestElement |
clear, clone, getProperty, getPropertyAsBoolean, getPropertyAsFloat, getPropertyAsInt, getPropertyAsLong, getPropertyAsString, isRunningVersion, propertyIterator, recoverRunningVersion, removeProperty, setProperty, setRunningVersion, 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
protected String SOAPACTION
protected org.w3c.dom.Document XMLMSG
protected static javax.xml.parsers.DocumentBuilder XDB
Constructor Detail |
public WebServiceSampler()
Method Detail |
public void setXmlPathLoc(String path)
public String getXmlPathLoc()
public void setXmlFile(String filename)
public String getXmlFile()
protected String getRandomFileName()
public void setXmlData(String data)
public String getXmlData()
public void setSoapAction(String data)
public String getSoapAction()
public void setMemoryCache(boolean cache)
public boolean getMemoryCache()
public void setReadResponse(boolean read)
public boolean getReadResponse()
public org.w3c.dom.Element createDocument()
protected org.w3c.dom.Document openDocument(String key)
public SampleResult sample(Entry e)
sample
in interface Sampler
sample
in class HTTPSampler
e
- Entry
to be sampled
public SampleResult sample()
sample
in class HTTPSampler
public void sampleWithApache()
public void addEncodedArgument(String name, String value, String metaData)
addEncodedArgument
in class HTTPSampler
protected HttpURLConnection setupConnection(URL u, String method) throws IOException
IOException
protected long connect() throws IOException
connect
in class HTTPSampler
IOException
|
Apache JMeter 1.9 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |