Class WebServiceSamplerGui

All Implemented Interfaces:
ActionListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, ClearGui, JMeterGUIComponent, Printable

public class WebServiceSamplerGui extends AbstractSamplerGui implements ActionListener
This is the GUI for the webservice samplers. It extends AbstractSamplerGui and is modeled after the SOAP sampler GUI. I've added instructional notes to the GUI for instructional purposes. XML parsing is pretty heavy weight, therefore the notes address those situations.
Created on: Jun 26, 2003
See Also:
  • Constructor Details

    • WebServiceSamplerGui

      public WebServiceSamplerGui()
  • Method Details

    • getLabelResource

      public String getLabelResource()
      Description copied from interface: JMeterGUIComponent
      Get the component's resource name, which getStaticLabel uses to derive the component's label in the local language. The resource name is fixed, and does not vary with the selected language. Normally this method should be overriden in preference to overriding getStaticLabel(). However where the resource name is not available or required, getStaticLabel() may be overridden instead.
      Specified by:
      getLabelResource in interface JMeterGUIComponent
      Returns:
      the resource name
    • createTestElement

      public TestElement createTestElement()
      Description copied from interface: JMeterGUIComponent
      JMeter test components are separated into a model and a GUI representation. The model holds the data and the GUI displays it. The GUI class is responsible for knowing how to create and initialize with data the model class that it knows how to display, and this method is called when new test elements are created.
      Specified by:
      createTestElement in interface JMeterGUIComponent
      Returns:
      the Test Element object that the GUI component represents.
      See Also:
    • modifyTestElement

      public void modifyTestElement(TestElement s)
      Modifies a given TestElement to mirror the data in the gui components.
      Specified by:
      modifyTestElement in interface JMeterGUIComponent
      Parameters:
      s - the TestElement to modify
      See Also:
    • clearGui

      public void clearGui()
      Implements JMeterGUIComponent.clearGui
      Specified by:
      clearGui in interface ClearGui
      Overrides:
      clearGui in class AbstractJMeterGuiComponent
    • configure

      public void configure(TestElement el)
      the implementation loads the URL and the soap action for the request.
      Specified by:
      configure in interface JMeterGUIComponent
      Overrides:
      configure in class AbstractJMeterGuiComponent
      Parameters:
      el - the TestElement to configure
    • configureFromWSDL

      public void configureFromWSDL()
      configure the sampler from the WSDL. If the WSDL did not include service node, it will use the original URL minus the querystring. That may not be correct, so we should probably add a note. For Microsoft webservices it will work, since that's how IIS works.
    • browseWSDL

      public String[] browseWSDL(String url, boolean silent)
      The method uses WSDLHelper to get the information from the WSDL. Since the logic for getting the description is isolated to this method, we can easily replace it with a different WSDL driver later on.
      Parameters:
      url - URL to the WSDL
      silent - flag whether errors parsing the WSDL should be shown to the user. If true errors will be silently ignored
      Returns:
      array of web methods
    • actionPerformed

      public void actionPerformed(ActionEvent event)
      method from ActionListener
      Specified by:
      actionPerformed in interface ActionListener
      Parameters:
      event - that occurred