org.apache.jmeter.protocol.http.control.gui

Class WebServiceSamplerGui

Implemented Interfaces:
ActionListener, 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

Field Summary

Fields inherited from class org.apache.jmeter.gui.AbstractJMeterGuiComponent

namePanel

Constructor Summary

WebServiceSamplerGui()

Method Summary

void
actionPerformed(ActionEvent event)
method from ActionListener
String[]
browseWSDL(String url)
The method uses WSDLHelper to get the information from the WSDL.
void
clearGui()
Implements JMeterGUIComponent.clearGui
void
configure(TestElement el)
the implementation loads the URL and the soap action for the request.
void
configureFromWSDL()
configure the sampler from the WSDL.
TestElement
createTestElement()
String
getLabelResource()
void
modifyTestElement(TestElement s)
Modifies a given TestElement to mirror the data in the gui components.

Methods inherited from class org.apache.jmeter.samplers.gui.AbstractSamplerGui

createPopupMenu, getMenuCategories

Methods inherited from class org.apache.jmeter.gui.AbstractJMeterGuiComponent

clearGui, configure, configureTestElement, createTitleLabel, getComment, getDocAnchor, getName, getNamePanel, getNode, getPrintableComponent, getStaticLabel, isEnabled, makeBorder, makeScrollPane, makeScrollPane, makeTitlePanel, setComment, setEnabled, setName, setNode

Constructor Details

WebServiceSamplerGui

public WebServiceSamplerGui()

Method Details

actionPerformed

public void actionPerformed(ActionEvent event)
method from ActionListener
Parameters:
event - that occurred

browseWSDL

public String[] browseWSDL(String url)
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 -
Returns:
array of web methods

clearGui

public void clearGui()
Implements JMeterGUIComponent.clearGui
Specified by:
clearGui in interface JMeterGUIComponent
Overrides:
clearGui in interface 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 interface AbstractJMeterGuiComponent

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.

createTestElement

public TestElement createTestElement()
Specified by:
createTestElement in interface JMeterGUIComponent

getLabelResource

public String getLabelResource()
Specified by:
getLabelResource in interface JMeterGUIComponent

modifyTestElement

public void modifyTestElement(TestElement s)
Modifies a given TestElement to mirror the data in the gui components.
Specified by:
modifyTestElement in interface JMeterGUIComponent

Copyright © 1998-2010 Apache Software Foundation. All Rights Reserved.