// 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 { // Get the port and construct the (simple) request. FeddPortType port = getPort("https://users.isi.deterlab.net:23235"); TerminateRequestType req = new TerminateRequestType( new IDType(null, null, null, args[0], null), false); 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()); } }