* the implementation loads the URL and the soap action for the request.
*/
@Override
public void configure(TestElement el) {
super.configure(el);
WebServiceSampler sampler = (WebServiceSampler) el;
wsdlField.setText(sampler.getWsdlURL());
final String wsdlText = wsdlField.getText();
if (wsdlText != null && wsdlText.length() > 0) {
fillWsdlMethods(wsdlField.getText(), true, sampler.getSoapAction());
}
protocol.setText(sampler.getProtocol());
domain.setText(sampler.getDomain());
port.setText(sampler.getPropertyAsString(HTTPSamplerBase.PORT));
path.setText(sampler.getPath());
soapAction.setText(sampler.getSoapAction());
soapXml.setText(sampler.getXmlData());
soapXml.setCaretPosition(0); // go to 1st line
soapXmlFile.setFilename(sampler.getXmlFile());
randomXmlFile.setText(sampler.getXmlPathLoc());
connectTimeout.setText(sampler.getTimeout());
memCache.setSelected(sampler.getMemoryCache());
readResponse.setSelected(sampler.getReadResponse());
useProxy.setSelected(sampler.getUseProxy());
if (sampler.getProxyHost().length() == 0) {
proxyHost.setEnabled(false);
} else {
proxyHost.setText(sampler.getProxyHost());
}
if (sampler.getProxyPort() == 0) {
proxyPort.setEnabled(false);
} else {
proxyPort.setText(String.valueOf(sampler.getProxyPort()));
}
}