woolfel     2005/07/28 17:27:11

  Modified:    src/protocol/http/org/apache/jmeter/protocol/http/control/gui
                        Tag: rel-2-1 WebServiceSamplerGui.java
  Log:
  fixed a bug I introduced when I refactored the code. now the port setting 
works correctly
  again.
  peter
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.19.2.1  +3 -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.19
  retrieving revision 1.19.2.1
  diff -u -r1.19 -r1.19.2.1
  --- WebServiceSamplerGui.java 12 Jul 2005 20:50:45 -0000      1.19
  +++ WebServiceSamplerGui.java 29 Jul 2005 00:27:10 -0000      1.19.2.1
  @@ -170,7 +170,7 @@
                WebServiceSampler sampler = (WebServiceSampler) s;
                this.configureTestElement(sampler);
                sampler.setDomain(domain.getText());
  -             sampler.setPort(80);
  +        sampler.setProperty(HTTPSamplerBase.PORT,port.getText());
                sampler.setPath(path.getText());
                sampler.setWsdlURL(wsdlField.getText());
                sampler.setMethod(HTTPSamplerBase.POST);
  @@ -280,12 +280,7 @@
                WebServiceSampler sampler = (WebServiceSampler) el;
                wsdlField.setText(sampler.getWsdlURL());
                domain.setText(sampler.getDomain());
  -             String portstring = 
sampler.getPropertyAsString(HTTPSamplerBase.PORT);
  -             if (portstring.equals("" + HTTPSamplerBase.UNSPECIFIED_PORT)) {
  -                     port.setText("");
  -             } else {
  -                     port.setText(portstring);
  -             }
  +        port.setText(sampler.getPropertyAsString(HTTPSamplerBase.PORT));
                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