// WSDL generated classes import edu.isi.www.fedd_types.*; import edu.isi.www.fedd_wsdl.*; // The fault thrown by failed commands import org.apache.axis.AxisFault; class Terminate extends FeddCommand { /** * Terminate the experiment with the menmonic name given on the command * line. */ public static void main(String args[]) throws javax.xml.rpc.ServiceException, java.net.MalformedURLException, java.rmi.RemoteException { boolean force = args.length > 2; String exptName = "test"; String urlString = "https://users.isi.deterlab.net:23235"; if (args.length > 0) exptName = args[0]; if (args.length > 1) urlString = args[1]; // Get the port and construct the (simple) request. FeddPortType port = getPort(urlString); TerminateRequestType req = new TerminateRequestType( new IDType(null, null, null, exptName, null), force); TerminateResponseType resp = null; try { /* Build the message and make the call */ resp = port.terminate(req); } catch (AxisFault f) { System.err.println("Error in Terminate: " + f); System.exit(20); } System.out.println("Terminate success: " + resp.getExperiment().getLocalname()); } }