Class SoapSampler

All Implemented Interfaces:
Serializable, Cloneable, ConfigMergabilityIndicator, Searchable, HTTPConstantsInterface, Interruptible, Sampler, TestElement, TestIterationListener, TestStateListener, ThreadListener

public class SoapSampler extends HTTPSampler2 implements Interruptible
Commons HTTPClient based soap sampler
See Also:
  • Field Details

  • Constructor Details

    • SoapSampler

      public SoapSampler()
  • Method Details

    • setXmlData

      public void setXmlData(String data)
    • getXmlData

      public String getXmlData()
    • setXmlFile

      public void setXmlFile(String filename)
      it's kinda obvious, but we state it anyways. Set the xml file with a string path.
      Parameters:
      filename - path to the xml file
    • getXmlFile

      public String getXmlFile()
      Get the file location of the xml file.
      Returns:
      String file path.
    • getURLData

      public String getURLData()
    • setURLData

      public void setURLData(String url)
    • getSOAPAction

      public String getSOAPAction()
    • getSOAPActionQuoted

      public String getSOAPActionQuoted()
    • setSOAPAction

      public void setSOAPAction(String action)
    • getSendSOAPAction

      public boolean getSendSOAPAction()
    • setSendSOAPAction

      public void setSendSOAPAction(boolean action)
    • setPostHeaders

      protected int setPostHeaders(PostMethod post)
    • sample

      protected HTTPSampleResult sample(URL url, String method, boolean areFollowingRedirect, int frameDepth)
      Description copied from class: HTTPSamplerBase
      Samples the URL passed in and stores the result in 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.

      Overrides:
      sample in class HTTPSampler2
      Parameters:
      url - URL to sample
      method - HTTP method: GET, POST,...
      areFollowingRedirect - whether we're getting a redirect target
      frameDepth - Depth of this target in the frame structure. Used only to prevent infinite recursion.
      Returns:
      results of the sampling, can be null if u is in CacheManager
    • getUrl

      public URL getUrl() throws MalformedURLException
      Description copied from class: HTTPSamplerBase
      Get the URL, built from its component parts.

      As a special case, if the path starts with "http[s]://", then the path is assumed to be the entire URL.

      Overrides:
      getUrl in class HTTPSamplerBase
      Returns:
      The URL to be requested by this sampler.
      Throws:
      MalformedURLException - if url is malformed