woolfel     2005/06/06 19:04:31

  Modified:    src/protocol/http/org/apache/jmeter/protocol/http/control/gui
                        WebServiceSamplerGui.java
  Log:
  I think I finally figured out what sebb meant. Rather than checking the port 
in create
  and modifyTestElement, it should be done in configure. hopefully this will 
make it so
  the webservice sampler will work in console mode.
  
  peter
  
  Revision  Changes    Path
  1.18      +12 -8     
jakarta-jmeter/src/protocol/http/org/apache/jmeter/protocol/http/control/gui/WebServiceSamplerGui.java
  
  Index: WebServiceSamplerGui.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-jmeter/src/protocol/http/org/apache/jmeter/protocol/http/control/gui/WebServiceSamplerGui.java,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- WebServiceSamplerGui.java 7 Jun 2005 01:34:40 -0000       1.17
  +++ WebServiceSamplerGui.java 7 Jun 2005 02:04:31 -0000       1.18
  @@ -186,11 +186,7 @@
           WebServiceSampler sampler = (WebServiceSampler) s;
           this.configureTestElement(sampler);
           sampler.setDomain(domain.getText());
  -        if (port.getText() != null && port.getText().length() > 0){
  -            sampler.setPort(Integer.parseInt(port.getText()));
  -        } else {
  -            sampler.setPort(80);
  -        }
  +        sampler.setPort(80);
           sampler.setPath(path.getText());
           sampler.setWsdlURL(wsdlField.getText());
           sampler.setMethod(HTTPSamplerBase.POST);
  @@ -305,7 +301,15 @@
           WebServiceSampler sampler = (WebServiceSampler) el;
           wsdlField.setText(sampler.getWsdlURL());
           domain.setText(sampler.getDomain());
  -        port.setText(String.valueOf(sampler.getPort()));
  +        String portstring = 
sampler.getPropertyAsString(HTTPSamplerBase.PORT);
  +        if (portstring.equals("" + HTTPSamplerBase.UNSPECIFIED_PORT))
  +        {
  +                port.setText("");
  +        }
  +        else
  +        {
  +            port.setText(portstring);
  +        }
           path.setText(sampler.getPath());
           soapAction.setText(sampler.getSoapAction());
           soapXml.setText(sampler.getXmlData());
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to