axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gdani...@apache.org
Subject cvs commit: xml-axis/java/samples/echo TestClient.java
Date Fri, 05 Sep 2003 17:52:01 GMT
gdaniels    2003/09/05 10:52:00

  Modified:    java/samples/echo TestClient.java
  Log:
  Enable username/password options for the echo test client.
  
  Revision  Changes    Path
  1.72      +11 -0     xml-axis/java/samples/echo/TestClient.java
  
  Index: TestClient.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/samples/echo/TestClient.java,v
  retrieving revision 1.71
  retrieving revision 1.72
  diff -u -r1.71 -r1.72
  --- TestClient.java	22 Apr 2003 19:33:20 -0000	1.71
  +++ TestClient.java	5 Sep 2003 17:52:00 -0000	1.72
  @@ -56,6 +56,7 @@
   package samples.echo ;
   
   import org.apache.axis.AxisFault;
  +import org.apache.axis.client.Stub;
   import org.apache.axis.types.HexBinary;
   import org.apache.axis.types.NegativeInteger;
   import org.apache.axis.types.NonNegativeInteger;
  @@ -194,6 +195,14 @@
           }
       }
   
  +    void setUser(String user) {
  +        ((Stub)binding).setUsername(user);
  +    }
  +
  +    void setPassword(String password) {
  +        ((Stub)binding).setPassword(password);        
  +    }
  +
       /**
        * Execute all tests.
        */
  @@ -774,6 +783,8 @@
   
           // set up the call object
           client.setURL(opts.getURL());
  +        client.setUser(opts.getUser());
  +        client.setPassword(opts.getPassword());
   
           if (testPerformance) {
               long startTime = System.currentTimeMillis();
  
  
  

Mime
View raw message