Lines 176-182
Link Here
|
176 |
@Override |
176 |
@Override |
177 |
public void clearGui() { |
177 |
public void clearGui() { |
178 |
super.clearGui(); |
178 |
super.clearGui(); |
179 |
|
179 |
wsdlMethods.setValues(new String[0]); |
180 |
domain.setText(""); //$NON-NLS-1$ |
180 |
domain.setText(""); //$NON-NLS-1$ |
181 |
protocol.setText(""); //$NON-NLS-1$ |
181 |
protocol.setText(""); //$NON-NLS-1$ |
182 |
port.setText(""); //$NON-NLS-1$ |
182 |
port.setText(""); //$NON-NLS-1$ |
Lines 262-267
Link Here
|
262 |
super.configure(el); |
262 |
super.configure(el); |
263 |
WebServiceSampler sampler = (WebServiceSampler) el; |
263 |
WebServiceSampler sampler = (WebServiceSampler) el; |
264 |
wsdlField.setText(sampler.getWsdlURL()); |
264 |
wsdlField.setText(sampler.getWsdlURL()); |
|
|
265 |
final String wsdlText = wsdlField.getText(); |
266 |
if (wsdlText != null && wsdlText.length() > 0) |
267 |
{ |
268 |
fillWsdlMethods(wsdlField.getText()); |
269 |
} |
265 |
protocol.setText(sampler.getProtocol()); |
270 |
protocol.setText(sampler.getProtocol()); |
266 |
domain.setText(sampler.getDomain()); |
271 |
domain.setText(sampler.getDomain()); |
267 |
port.setText(sampler.getPropertyAsString(HTTPSamplerBase.PORT)); |
272 |
port.setText(sampler.getPropertyAsString(HTTPSamplerBase.PORT)); |
Lines 361-371
Link Here
|
361 |
} else if (eventSource == wsdlButton){ |
366 |
} else if (eventSource == wsdlButton){ |
362 |
final String wsdlText = wsdlField.getText(); |
367 |
final String wsdlText = wsdlField.getText(); |
363 |
if (wsdlText != null && wsdlText.length() > 0) { |
368 |
if (wsdlText != null && wsdlText.length() > 0) { |
364 |
String[] wsdlData = browseWSDL(wsdlText); |
369 |
fillWsdlMethods(wsdlText); |
365 |
if (wsdlData != null) { |
|
|
366 |
wsdlMethods.setValues(wsdlData); |
367 |
wsdlMethods.repaint(); |
368 |
} |
369 |
} else { |
370 |
} else { |
370 |
JOptionPane.showConfirmDialog(this, |
371 |
JOptionPane.showConfirmDialog(this, |
371 |
JMeterUtils.getResString("wsdl_url_error"), // $NON-NLS-1$ |
372 |
JMeterUtils.getResString("wsdl_url_error"), // $NON-NLS-1$ |
Lines 375-378
Link Here
|
375 |
} |
376 |
} |
376 |
} |
377 |
} |
377 |
|
378 |
|
|
|
379 |
/** |
380 |
* @param wsdlText |
381 |
*/ |
382 |
private void fillWsdlMethods(final String wsdlText) { |
383 |
String[] wsdlData = browseWSDL(wsdlText); |
384 |
if (wsdlData != null) { |
385 |
wsdlMethods.setValues(wsdlData); |
386 |
wsdlMethods.repaint(); |
387 |
} |
388 |
} |
389 |
|
378 |
} |
390 |
} |