axis_examplecompt_changesinfo-ops
Last change
on this file since cedf721 was
72176de2,
checked in by Ted Faber <faber@…>, 14 years ago
|
Allow commits with force.
|
-
Property mode set to
100644
|
File size:
1.0 KB
|
Line | |
---|
1 | // WSDL generated classes |
---|
2 | import edu.isi.www.fedd_types.*; |
---|
3 | import edu.isi.www.fedd_wsdl.*; |
---|
4 | |
---|
5 | // The fault thrown by failed commands |
---|
6 | import org.apache.axis.AxisFault; |
---|
7 | |
---|
8 | class Terminate extends FeddCommand { |
---|
9 | /** |
---|
10 | * Terminate the experiment with the menmonic name given on the command |
---|
11 | * line. |
---|
12 | */ |
---|
13 | public static void main(String args[]) throws |
---|
14 | javax.xml.rpc.ServiceException, java.net.MalformedURLException, |
---|
15 | java.rmi.RemoteException { |
---|
16 | |
---|
17 | boolean force = args.length > 1; |
---|
18 | |
---|
19 | // Get the port and construct the (simple) request. |
---|
20 | FeddPortType port = getPort("https://users.isi.deterlab.net:23235"); |
---|
21 | TerminateRequestType req = new TerminateRequestType( |
---|
22 | new IDType(null, null, null, args[0], null), |
---|
23 | force); |
---|
24 | TerminateResponseType resp = null; |
---|
25 | |
---|
26 | |
---|
27 | try { |
---|
28 | /* Build the message and make the call */ |
---|
29 | resp = port.terminate(req); |
---|
30 | } |
---|
31 | catch (AxisFault f) { |
---|
32 | System.err.println("Error in Terminate: " + f); |
---|
33 | System.exit(20); |
---|
34 | } |
---|
35 | System.out.println("Terminate success: " + |
---|
36 | resp.getExperiment().getLocalname()); |
---|
37 | } |
---|
38 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.