You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by gd...@apache.org on 2003/09/05 19:52:01 UTC

cvs commit: xml-axis/java/samples/echo TestClient.java

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();