| org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase org.apache.jmeter.protocol.http.sampler.WebServiceSampler
WebServiceSampler | public class WebServiceSampler extends HTTPSamplerBase (Code) | | 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
|
addEncodedArgument | public void addEncodedArgument(String name, String value, String metaData)(Code) | | We override this to prevent the wrong encoding and provide no
implementation. We want to reuse the other parts of HTTPSampler, but not
the connection. The connection is handled by the Apache SOAP driver.
|
getMemoryCache | public boolean getMemoryCache()(Code) | | Get the memory cache.
boolean cache |
getProxyHost | public String getProxyHost()(Code) | | Return the proxy hostname
the proxy hostname |
getProxyPort | public int getProxyPort()(Code) | | Return the proxy port
the proxy port |
getRandomFileName | protected String getRandomFileName()(Code) | | Method is used internally to check if a random file should be used for
the message. Messages must be valid. This is one way to load test with
different messages. The limitation of this approach is parsing XML takes
CPU resources, so it could affect JMeter GUI responsiveness.
String filename |
getReadResponse | public boolean getReadResponse()(Code) | | Return whether or not to read the response.
boolean |
getSoapAction | public String getSoapAction()(Code) | | Return the soap action string.
String soap action |
getTimeoutAsInt | public int getTimeoutAsInt()(Code) | | |
getUseProxy | public boolean getUseProxy()(Code) | | Return whether or not to use proxy
true if should use proxy |
getWsdlURL | public String getWsdlURL()(Code) | | method returns the WSDL URL
the WSDL URL |
getXmlData | public String getXmlData()(Code) | | Get the XML data as a string.
String data |
getXmlFile | public String getXmlFile()(Code) | | Get the file location of the xml file.
String file path. |
getXmlPathLoc | public String getXmlPathLoc()(Code) | | Get the path where XML messages are stored. this is the directory where
JMeter will randomly select a file.
|
sample | public SampleResult sample()(Code) | | Sample the URL using Apache SOAP driver. Implementation note for myself
and those that are curious. Current logic marks the end after the
response has been read. If read response is set to false, the buffered
reader will read, but do nothing with it. Essentially, the stream from
the server goes into the ether.
|
setMemoryCache | public void setMemoryCache(boolean cache)(Code) | | Set the memory cache.
Parameters: cache - |
setProxyHost | public void setProxyHost(String host)(Code) | | Set the proxy hostname
Parameters: host - |
setProxyPort | public void setProxyPort(String port)(Code) | | Set the proxy port
Parameters: port - |
setReadResponse | public void setReadResponse(boolean read)(Code) | | Set whether the sampler should read the response or not.
Parameters: read - |
setSoapAction | public void setSoapAction(String data)(Code) | | Set the soap action which should be in the form of an URN.
Parameters: data - |
setUseProxy | public void setUseProxy(boolean proxy)(Code) | | Set whether or not to use a proxy
Parameters: proxy - |
setWsdlURL | public void setWsdlURL(String url)(Code) | | Parameters: url - |
setXmlData | public void setXmlData(String data)(Code) | | Set the XML data.
Parameters: data - |
setXmlFile | public void setXmlFile(String filename)(Code) | | it's kinda obvious, but we state it anyways. Set the xml file with a
string path.
Parameters: filename - |
setXmlPathLoc | public void setXmlPathLoc(String path)(Code) | | Set the path where XML messages are stored for random selection.
|
Methods inherited from org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase | public void addArgument(String name, String value)(Code)(Java Doc) public void addArgument(String name, String value, String metadata)(Code)(Java Doc) public void addEncodedArgument(String name, String value)(Code)(Java Doc) public void addEncodedArgument(String name, String value, String metaData, String contentEncoding)(Code)(Java Doc) public void addEncodedArgument(String name, String value, String metaData)(Code)(Java Doc) public void addNonEncodedArgument(String name, String value, String metadata)(Code)(Java Doc) public void addTestElement(TestElement el)(Code)(Java Doc) public Object clone()(Code)(Java Doc) protected HTTPSampleResult downloadPageResources(HTTPSampleResult res, HTTPSampleResult container, int frameDepth)(Code)(Java Doc) protected static String encodeBackSlashes(String value)(Code)(Java Doc) protected String encodeSpaces(String path)(Code)(Java Doc) protected HTTPSampleResult errorResult(Throwable e, HTTPSampleResult res)(Code)(Java Doc) protected HTTPSampleResult followRedirects(HTTPSampleResult res, int frameDepth)(Code)(Java Doc) public Arguments getArguments()(Code)(Java Doc) public AuthManager getAuthManager()(Code)(Java Doc) public boolean getAutoRedirects()(Code)(Java Doc) public String getClient()(Code)(Java Doc) public String getContentEncoding()(Code)(Java Doc) public CookieManager getCookieManager()(Code)(Java Doc) public static int getDefaultPort(String protocol, int port)(Code)(Java Doc) public boolean getDoMultipartPost()(Code)(Java Doc) public String getDomain()(Code)(Java Doc) public String getEmbeddedUrlRE()(Code)(Java Doc) public String getFileField()(Code)(Java Doc) public String getFilename()(Code)(Java Doc) public boolean getFollowRedirects()(Code)(Java Doc) public HeaderManager getHeaderManager()(Code)(Java Doc) public String getImplementation()(Code)(Java Doc) public String getMethod()(Code)(Java Doc) public String getMimetype()(Code)(Java Doc) public String getMonitor()(Code)(Java Doc) public String getPath()(Code)(Java Doc) public int getPort()(Code)(Java Doc) public String getProtocol()(Code)(Java Doc) public String getQueryString()(Code)(Java Doc) public String getQueryString(String contentEncoding)(Code)(Java Doc) public boolean getSendFileAsPostBody()(Code)(Java Doc) public boolean getSendParameterValuesAsPostBody()(Code)(Java Doc) public URL getUrl() throws MalformedURLException(Code)(Java Doc) public boolean getUseKeepAlive()(Code)(Java Doc) public boolean getUseMultipartForPost()(Code)(Java Doc) public static String[] getValidMethodsAsArray()(Code)(Java Doc) public boolean hasArguments()(Code)(Java Doc) protected boolean hasUploadableFiles()(Code)(Java Doc) public boolean isImageParser()(Code)(Java Doc) public boolean isMonitor()(Code)(Java Doc) public boolean isProtocolDefaultPort()(Code)(Java Doc) public static boolean isSecure(String protocol)(Code)(Java Doc) public static boolean isSecure(URL url)(Code)(Java Doc) protected boolean isSuccessCode(int code)(Code)(Java Doc) public void parseArguments(String queryString, String contentEncoding)(Code)(Java Doc) public void parseArguments(String queryString)(Code)(Java Doc) protected HTTPSampleResult resultProcessing(boolean areFollowingRedirect, int frameDepth, HTTPSampleResult res)(Code)(Java Doc) public SampleResult sample(Entry e)(Code)(Java Doc) public SampleResult sample()(Code)(Java Doc) abstract protected HTTPSampleResult sample(URL u, String method, boolean areFollowingRedirect, int depth)(Code)(Java Doc) public void setArguments(Arguments value)(Code)(Java Doc) public void setAuthManager(AuthManager value)(Code)(Java Doc) public void setAutoRedirects(boolean value)(Code)(Java Doc) public void setClient(String client)(Code)(Java Doc) public void setContentEncoding(String value)(Code)(Java Doc) public void setCookieManager(CookieManager value)(Code)(Java Doc) public void setDoMultipartPost(boolean value)(Code)(Java Doc) public void setDomain(String value)(Code)(Java Doc) public void setEmbeddedUrlRE(String regex)(Code)(Java Doc) public void setFileField(String value)(Code)(Java Doc) public void setFilename(String value)(Code)(Java Doc) public void setFollowRedirects(boolean value)(Code)(Java Doc) public void setHeaderManager(HeaderManager value)(Code)(Java Doc) public void setImageParser(boolean parseImages)(Code)(Java Doc) public void setImplementation(String value)(Code)(Java Doc) public void setMethod(String value)(Code)(Java Doc) public void setMimetype(String value)(Code)(Java Doc) public void setMonitor(String value)(Code)(Java Doc) public void setMonitor(boolean truth)(Code)(Java Doc) public void setPath(String path)(Code)(Java Doc) public void setPath(String path, String contentEncoding)(Code)(Java Doc) public void setPort(int value)(Code)(Java Doc) public void setProtocol(String value)(Code)(Java Doc) public void setUseKeepAlive(boolean value)(Code)(Java Doc) public void testEnded()(Code)(Java Doc) public void testEnded(String host)(Code)(Java Doc) public void testIterationStart(LoopIterationEvent event)(Code)(Java Doc) public void testStarted()(Code)(Java Doc) public void testStarted(String host)(Code)(Java Doc) public void threadFinished()(Code)(Java Doc) public void threadStarted()(Code)(Java Doc) public String toString()(Code)(Java Doc)
|
|
|