import org.apache.axis.client.Call; import org.apache.axis.client.Service; import org.apache.axis.encoding.XMLType; import org.apache.axis.utils.Options; import javax.xml.rpc.ParameterMode; public class Client { public static void main(String[] args) throws Exception { //String endpoint = "http://localhost:8080/axis/PrimeHandler.jws"; String endpoint = args[0]; String method = "getPrime"; String password = args[1]; Service service = new Service(); Call call = (Call)service.createCall(); call.setTargetEndpointAddress(new java.net.URL(endpoint)); call.setOperationName(method); call.addParameter("op1", XMLType.XSD_STRING, ParameterMode.IN); call.setReturnType(XMLType.XSD_STRING); String ret = (String)call.invoke(new Object [] {password}); System.out.println("Response from server: " + ret); } }