import org.apache.axis.client.Call;
import org.apache.axis.client.Service;
import javax.xml.namespace.QName;
  
public class TestClient {
 public static void main(String [] args) {
  try {
    String endpoint =
      "http://localhost:8180/axis/Calculator.jws";
 
    Service  service = new Service();
    Call  call = (Call) service.createCall();
 
    call.setTargetEndpointAddress( new java.net.URL(endpoint) );
    call.setOperationName(new QName("http://soapinterop.org/", args[0]));
 
    Integer ret = (Integer) call.invoke( new Object[] { Integer.valueOf(args[1]), Integer.valueOf(args[2]) } );
  
    System.out.println("Sent '"+args[0]+" "+args[1]+" "+args[2]+"', got '" + ret + "'");
   } // try
   catch (Exception e) {
    System.err.println(e.toString());
   } // catch
  } // main
} // class

